You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "Fine0830 (via GitHub)" <gi...@apache.org> on 2025/07/22 08:28:51 UTC

[PR] fix(UI): avoid shardingKey.tagNames is undfined [skywalking-banyandb]

Fine0830 opened a new pull request, #710:
URL: https://github.com/apache/skywalking-banyandb/pull/710

   - [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Fixes apache/skywalking#13379.
   - [x] Update the [`CHANGES` log](https://github.com/apache/skywalking-banyandb/blob/main/CHANGES.md).
   
   Screenshot
   
   <img width="1500" height="817" alt="1" src="https://github.com/user-attachments/assets/1ce61124-c2d9-4de2-9c41-fc35837823f2" />
   
   
   Signed-off-by: Qiuxia Fan <qi...@apache.org>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(UI): avoid shardingKey.tagNames is undfined [skywalking-banyandb]

Posted by "wankai123 (via GitHub)" <gi...@apache.org>.
wankai123 closed pull request #710: fix(UI): avoid shardingKey.tagNames is undfined
URL: https://github.com/apache/skywalking-banyandb/pull/710


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(UI): avoid shardingKey.tagNames is undfined [skywalking-banyandb]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #710:
URL: https://github.com/apache/skywalking-banyandb/pull/710#discussion_r2221697390


##########
ui/src/components/Editor/index.vue:
##########
@@ -228,10 +228,10 @@
       getStreamOrMeasure(data.type, data.form.group, data.form.name)
         .then((res) => {
           if (res.status === 200) {
-            data.form.indexMode = res.data[String(data.type)].indexMode;
-            const tagFamilies = res.data[String(data.type)].tagFamilies;
-            const entity = res.data[String(data.type)].entity.tagNames;
-            const shardingKey = res.data[String(data.type)].shardingKey?.tagNames;
+            data.form.indexMode = res.data[String(data.type)].indexMode || false;

Review Comment:
   The default value `false` for `indexMode` may not be semantically correct. Consider using a more appropriate default value or handling the undefined case explicitly to ensure the application behaves correctly when the API doesn't return this field.
   ```suggestion
               data.form.indexMode = res.data[String(data.type)].indexMode !== undefined 
                 ? res.data[String(data.type)].indexMode 
                 : false;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(UI): avoid shardingKey.tagNames is undfined [skywalking-banyandb]

Posted by "wankai123 (via GitHub)" <gi...@apache.org>.
wankai123 merged PR #710:
URL: https://github.com/apache/skywalking-banyandb/pull/710


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org