Skip to content

feat(dashboard): add view_all enum and swagger docs for global workflow panel#3285

Merged
LordofAvernus merged 2 commits intomainfrom
sqle/feat-802
Apr 30, 2026
Merged

feat(dashboard): add view_all enum and swagger docs for global workflow panel#3285
LordofAvernus merged 2 commits intomainfrom
sqle/feat-802

Conversation

@LordofAvernus
Copy link
Copy Markdown
Collaborator

@LordofAvernus LordofAvernus commented Apr 30, 2026

User description

Summary

  • Add GlobalWorkflowFilterCardViewAll enum value and ViewAllCount field to GlobalWorkflowStatisticsV2
  • Update swagger docs for view_all filter_card enum

Related Issue

Refs: https://github.com/actiontech/dms-ee/issues/802


Description

  • 增加全局工单统计 view_all 字段

  • 扩展 FilterCard 枚举支持 view_all

  • 更新 swagger 文档与注释描述


Diagram Walkthrough

flowchart LR
  A["\"API Controller\""] -- "添加 ViewAllCount 字段" --> B["\"Types 文件\""]
  A -- "更新 FilterCard 枚举" --> C["\"Swagger 注释\""]
  C -- "同步文档更新" --> D["\"Docs (JSON/YAML)\""]
Loading

File Walkthrough

Relevant files
Enhancement
workflow_manage.go
更新全局工单接口增加 view_all 支持及文档注释                                                           

sqle/api/controller/v2/dashboard/workflow_manage.go

  • 添加 ViewAllCount 字段
  • 扩展 FilterCard 枚举支持 view_all
  • 更新 swagger 注释说明
+4/-3     
types.go
新增 view_all 枚举常量                                                                                 

sqle/server/dashboard/types.go

  • 新增 GlobalWorkflowFilterCardViewAll 常量
  • 定义 view_all 枚举标识
+2/-0     
Documentation
docs.go
更新 swagger 文档中 view_all 支持                                                             

sqle/docs/docs.go

  • 更新 swagger docs 中 filter_card 枚举
  • 增加 view_all 字段描述
+8/-3     
swagger.json
更新 swagger json 支持 view_all 字段                                                     

sqle/docs/swagger.json

  • 增加 view_all 至 filter_card 枚举
  • 添加 view_all_count 字段说明
+8/-3     
swagger.yaml
更新 swagger yaml 支持 view_all 字段                                                     

sqle/docs/swagger.yaml

  • 更新 yaml 文件中 filter_card 枚举描述
  • 增加 view_all_count 字段定义
+6/-2     

…lobal workflow stats

Add GlobalWorkflowFilterCardViewAll enum constant to support the new
"view all" card in the global dashboard workflow panel. Update the
FilterCard valid tag and Swagger Enums to accept view_all. Add
ViewAllCount field to GlobalWorkflowStatisticsV2 for the fourth card's
count display.

Refs: dms-ee#802
Regenerate swagger docs to include the view_all value in filter_card
parameter enum for GetGlobalWorkflowListV2.

Refs: dms-ee#802
@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🎫 Ticket compliance analysis 🔶

802 - Partially compliant

Compliant requirements:

  • 增加全局工单统计 view_all 字段
  • 扩展 FilterCard 枚举支持 view_all
  • 更新 swagger 文档与注释描述

Non-compliant requirements:

[]

Requires further human verification:

[]

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@LordofAvernus LordofAvernus merged commit 84f9240 into main Apr 30, 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