Skip to content

Commit

Permalink
autotest configs bug fix (erda-project#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
kakj-go authored Jul 30, 2021
1 parent ee95afa commit 4e88991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ LABEL:
// cfgChildren2 = append(cfgChildren2, Input{Label: k, Value: "{{" + k + "}}", IsLeaf: true})
// }
for _, v := range cfg.APIConfig.Global {
cfgChildren3 = append(cfgChildren3, Input{Label: v.Name, Value: expression.GenConfigParams(v.Name), IsLeaf: true})
cfgChildren3 = append(cfgChildren3, Input{Label: v.Name, Value: expression.GenAutotestConfigParams(v.Name), IsLeaf: true})
}
// cfgChildren1 = append(cfgChildren1, Input{Label: "Header", Value: "Header", IsLeaf: false, Children: cfgChildren2})
cfgChildren1 = append(cfgChildren1, Input{Label: "Global", Value: "Global", IsLeaf: false, Children: cfgChildren3})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (i *ComponentInParamsForm) RenderOnSelect(opsData interface{}) error {
// cfgChildren2 = append(cfgChildren2, Input{Label: k, Value: "{{" + k + "}}", IsLeaf: true})
// }
for _, v := range cfg.APIConfig.Global {
cfgChildren3 = append(cfgChildren3, PropChangeOption{Label: v.Name, Value: "${{ configs.autotest." + v.Name + " }}", IsLeaf: true})
cfgChildren3 = append(cfgChildren3, PropChangeOption{Label: v.Name, Value: expression.GenAutotestConfigParams(v.Name), IsLeaf: true})
}
// cfgChildren1 = append(cfgChildren1, Input{Label: "Header", Value: "Header", IsLeaf: false, Children: cfgChildren2})
cfgChildren1 = append(cfgChildren1, PropChangeOption{Label: "Global", Value: "Global", IsLeaf: false, Children: cfgChildren3})
Expand Down

0 comments on commit 4e88991

Please sign in to comment.