瀏覽代碼

fix: workflow log status filter add parial success status (#24977)

tags/1.8.1
Novice 1 月之前
父節點
當前提交
68c75f221b
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 3
    1
      api/controllers/console/app/workflow_app_log.py
  2. 1
    0
      web/app/components/app/workflow-log/filter.tsx

+ 3
- 1
api/controllers/console/app/workflow_app_log.py 查看文件

@@ -27,7 +27,9 @@ class WorkflowAppLogApi(Resource):
"""
parser = reqparse.RequestParser()
parser.add_argument("keyword", type=str, location="args")
parser.add_argument("status", type=str, choices=["succeeded", "failed", "stopped"], location="args")
parser.add_argument(
"status", type=str, choices=["succeeded", "failed", "stopped", "partial-succeeded"], location="args"
)
parser.add_argument(
"created_at__before", type=str, location="args", help="Filter logs created before this timestamp"
)

+ 1
- 0
web/app/components/app/workflow-log/filter.tsx 查看文件

@@ -43,6 +43,7 @@ const Filter: FC<IFilterProps> = ({ queryParams, setQueryParams }: IFilterProps)
{ value: 'succeeded', name: 'Success' },
{ value: 'failed', name: 'Fail' },
{ value: 'stopped', name: 'Stop' },
{ value: 'partial-succeeded', name: 'Partial Success' },
]}
/>
<Chip

Loading…
取消
儲存