-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 未命名版本有修改的配置文件与配置项顶置+支持筛选 --story=116041083 #2940
feat: 未命名版本有修改的配置文件与配置项顶置+支持筛选 --story=116041083 #2940
Conversation
Ambition9186
commented
Feb 1, 2024
- 未命名版本有修改的配置文件与配置项顶置+支持筛选
- 模板配置和配置项排序
2292f90
to
99be38f
Compare
@@ -236,9 +236,10 @@ func (dao *templateDao) List(kit *kit.Kit, bizID, templateSpaceID uint32, s sear | |||
} | |||
d := q.Where(m.BizID.Eq(bizID), m.TemplateSpaceID.Eq(templateSpaceID)).Where(conds...) | |||
if len(topIds) != 0 { | |||
d = d.Order(utils.NewCustomExpr(`CASE WHEN id IN (?) THEN 0 ELSE 1 END,path,name ASC`, []interface{}{topIds})) | |||
d = d.Order(utils.NewCustomExpr(`CASE WHEN id IN (?) THEN 0 ELSE 1 END,CONCAT(path, name) ASC`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里用的 CONCAT,能保证模板文件路径都是以 / 结尾吗
@@ -1553,6 +1554,7 @@ message ListKvsReq { | |||
string sort = 12; | |||
string order = 13; | |||
string top_ids = 14; | |||
string change_status = 15; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个参数就叫 status 就行了,目前是没有歧义,可以注释列举一下可选的枚举值
@@ -409,6 +409,7 @@ message ListConfigItemsReq { | |||
string ids = 7; | |||
bool all = 8; | |||
bool with_status = 9; | |||
string change_status = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个参数就叫 status 就行了,目前是没有歧义,可以注释列举一下可选的枚举值
99be38f
to
1ae0a39
Compare
1ae0a39
to
45f285e
Compare