Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Novice68c75f221b78
diff --git a/api/controllers/console/app/workflow_app_log.py b/api/controllers/console/app/workflow_app_log.py
index 8d8cdc93cf9..76f02041ef8 100644
--- a/api/controllers/console/app/workflow_app_log.py
+++ b/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"
)
diff --git a/web/app/components/app/workflow-log/filter.tsx b/web/app/components/app/workflow-log/filter.tsx
index f60e1f9da2d..1ef1bd7a29c 100644
--- a/web/app/components/app/workflow-log/filter.tsx
+++ b/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