This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


The following commit(s) were added to refs/heads/main by this push:
     new 91124c11 Change `node_selector` to `stages` for groups in UI. (#650)
91124c11 is described below

commit 91124c11e52b0b8c37b2ad24c32d55a81bdc6031
Author: Fine0830 <fanxue0...@gmail.com>
AuthorDate: Fri Apr 18 18:28:21 2025 +0800

    Change `node_selector` to `stages` for groups in UI. (#650)
---
 ui/src/components/Editor/index.vue    | 2 +-
 ui/src/components/GroupTree/data.js   | 2 +-
 ui/src/components/GroupTree/index.vue | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ui/src/components/Editor/index.vue 
b/ui/src/components/Editor/index.vue
index 925627cc..ab9b4be7 100644
--- a/ui/src/components/Editor/index.vue
+++ b/ui/src/components/Editor/index.vue
@@ -233,7 +233,7 @@
             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;
+            const shardingKey = 
res.data[String(data.type)].shardingKey?.tagNames;
             const arr = [];
             tagFamilies.forEach((item) => {
               item.tags.forEach((tag) => {
diff --git a/ui/src/components/GroupTree/data.js 
b/ui/src/components/GroupTree/data.js
index 779f36a6..88be318a 100644
--- a/ui/src/components/GroupTree/data.js
+++ b/ui/src/components/GroupTree/data.js
@@ -34,7 +34,7 @@ export const StageConfig = {
   ttlNum: 3,
   segmentIntervalUnit: 'UNIT_DAY',
   segmentIntervalNum: 1,
-  NodeSelector: '',
+  nodeSelector: '',
 };
 
 export const Rules = {
diff --git a/ui/src/components/GroupTree/index.vue 
b/ui/src/components/GroupTree/index.vue
index 5c442770..d8eec099 100644
--- a/ui/src/components/GroupTree/index.vue
+++ b/ui/src/components/GroupTree/index.vue
@@ -83,6 +83,7 @@
     ttlUnit: 'UNIT_DAY',
     ttlNum: 3,
     stages: [],
+    defaultStages: [],
   });
   const getGroupForm = computed(() => ({
     group: {
@@ -115,6 +116,7 @@
             num: d.segmentIntervalNum,
           },
         })),
+        defaultStages: groupForm.defaultStages,
       },
     },
   }));
@@ -740,6 +742,9 @@
         <el-form-item label="TTL num" :label-width="data.formLabelWidth" 
prop="ttlNum">
           <el-input-number v-model="groupForm.ttlNum" :min="1" />
         </el-form-item>
+        <el-form-item label="Default stages" 
:label-width="data.formLabelWidth" prop="defaultStages">
+          <el-input-tag v-model="groupForm.defaultStages" placeholder="Please 
input stages" />
+        </el-form-item>
         <el-form-item label="Stages" :label-width="data.formLabelWidth" 
prop="stages">
           <el-button size="small" type="primary" color="#6E38F7" 
@click="openAddStage">Add Stage</el-button>
           <el-table style="margin-top: 10px" :data="groupForm.stages" border>

Reply via email to