Skip to content

feat: support ops type on SQL workflows - #3361

Merged
Seechi-Yolo merged 2 commits into
mainfrom
sqle/feat-967
Aug 17, 2026
Merged

Seechi-Yolo merged 2 commits into
mainfrom
sqle/feat-967

Conversation

@LordofAvernus

@LordofAvernus LordofAvernus commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

User description

关联的 issue

https://github.com/actiontech/dms-ee/issues/967

描述你的变更

  • SQL 上线工单支持 ops_type_uid 落库、字典解析与列表/导出/Dashboard 筛选
  • 补充 swagger 与 locale 文案

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

Made with Cursor


Description

  • 增加工单运维类型参数和校验

  • 新增OpsType字典查询及映射模块

  • 更新Swagger文档与国际化消息

  • 优化导出和查询接口的运维类型支持


Diagram Walkthrough

flowchart LR
  A[""添加opsTypeUID参数到工单创建接口""]
  B[""调用ValidateOpsTypeBelongToProject进行校验""]
  C[""新增OpsType辅助模块处理字典查询""]
  D[""更新Swagger文档描述参数""]
  E[""更新导出和查询接口支持ops_type显示""]
  A -- "传递opsTypeUID" --> B
  B -- "验证归属关系" --> C
  C -- "返回字典映射" --> E
  D -- "同步API文档" --> E
Loading

File Walkthrough

Relevant files
Enhancement
9 files
workflow.go
增加opsTypeUID参数及校验逻辑                                                                           
+21/-3   
workflow.go
更新工单创建接口传递opsTypeUID参数                                                                     
+7/-2     
workflow_manage.go
新增FilterByOpsTypeUID筛选参数                                                                 
+3/-0     
ops_type.go
新增OpsType模块支持字典查询及映射                                                                         
+110/-0 
message_zh.go
添加运维类型相关国际化消息                                                                                       
+1/-0     
workflow.go
增加ops_type_uid字段处理逻辑与创建限制                                                               
+7/-1     
workflow_list.go
添加ops_type_uid字段支持到查询模板                                                                   
+8/-1     
types.go
更新全局工单数据结构包含ops_type                                                                         
+4/-0     
export.go
添加导出中运维类型列及映射逻辑                                                                                   
+14/-1   
Documentation
5 files
docs.go
更新Swagger文档增加ops type参数描述                                                               
+48/-0   
swagger.json
更新Swagger spec增加ops type过滤参数说明                                                     
+48/-0   
swagger.yaml
修改Swagger YAML支持ops type定义及过滤字段                                                   
+35/-0   
active.en.toml
更新英文国际化消息增加ops type字段                                                                       
+1/-0     
active.zh.toml
更新中文国际化消息增加运维类型描述                                                                               
+1/-0     
Tests
1 files
export_test.go
增加导出运维类型列显示的单元测试                                                                                 
+6/-0     

LordofAvernus and others added 2 commits August 15, 2026 04:48
Add ops_type_uid persistence, DMS dictionary lookup helpers, and list/detail/export/dashboard filter and display wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose ops type labels and API docs for workflow create/list/export surfaces.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

@github-actions

Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@Seechi-Yolo
Seechi-Yolo merged commit d536a43 into main Aug 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants