Skip to content

Commit

Permalink
api definition: add status to associated rollback workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN committed Nov 22, 2024
1 parent eb6b269 commit c4ae4a7
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqle/api/controller/v2/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type AuditTaskSQLResV2 struct {
type AssociatedRollbackWorkflow struct {
WorkflowID string `json:"workflow_id"`
WorkflowName string `json:"workflow_name"`
Status string `json:"status" enums:"wait_for_audit,wait_for_execution,rejected,canceled,exec_failed,executing,finished"`
}

type AuditResult struct {
Expand Down
12 changes: 12 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18513,6 +18513,18 @@ var doc = `{
"v2.AssociatedRollbackWorkflow": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"wait_for_audit",
"wait_for_execution",
"rejected",
"canceled",
"exec_failed",
"executing",
"finished"
]
},
"workflow_id": {
"type": "string"
},
Expand Down
12 changes: 12 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18497,6 +18497,18 @@
"v2.AssociatedRollbackWorkflow": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"wait_for_audit",
"wait_for_execution",
"rejected",
"canceled",
"exec_failed",
"executing",
"finished"
]
},
"workflow_id": {
"type": "string"
},
Expand Down
10 changes: 10 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5080,6 +5080,16 @@ definitions:
type: object
v2.AssociatedRollbackWorkflow:
properties:
status:
enum:
- wait_for_audit
- wait_for_execution
- rejected
- canceled
- exec_failed
- executing
- finished
type: string
workflow_id:
type: string
workflow_name:
Expand Down

0 comments on commit c4ae4a7

Please sign in to comment.