feat(workflows, runs, api): parameter metadata search/filter/display across workflows and runs (#3718)

Co-authored-by: Jonathan Dobson <jon.m.dobson@gmail.com>
This commit is contained in:
Celal Zamanoglu
2025-10-16 16:04:53 +03:00
committed by GitHub
parent 427e674299
commit 5531367566
9 changed files with 700 additions and 18 deletions

View File

@@ -1137,7 +1137,7 @@ class WorkflowService:
organization_id: str | None = None,
page: int = 1,
page_size: int = 10,
title: str = "",
search_key: str = "",
statuses: list[WorkflowStatus] | None = None,
) -> list[Workflow]:
return await app.DATABASE.get_workflows_by_permanent_ids(
@@ -1145,7 +1145,7 @@ class WorkflowService:
organization_id=organization_id,
page=page,
page_size=page_size,
title=title,
title=search_key,
statuses=statuses,
)
@@ -1156,11 +1156,14 @@ class WorkflowService:
page_size: int = 10,
only_saved_tasks: bool = False,
only_workflows: bool = False,
title: str = "",
search_key: str | None = None,
statuses: list[WorkflowStatus] | None = None,
) -> list[Workflow]:
"""
Get all workflows with the latest version for the organization.
Args:
search_key: Unified search term for title and parameter metadata (replaces title/parameter).
"""
return await app.DATABASE.get_workflows_by_organization_id(
organization_id=organization_id,
@@ -1168,7 +1171,7 @@ class WorkflowService:
page_size=page_size,
only_saved_tasks=only_saved_tasks,
only_workflows=only_workflows,
title=title,
search_key=search_key,
statuses=statuses,
)
@@ -1327,6 +1330,7 @@ class WorkflowService:
page: int = 1,
page_size: int = 10,
status: list[WorkflowRunStatus] | None = None,
search_key: str | None = None,
) -> list[WorkflowRun]:
return await app.DATABASE.get_workflow_runs_for_workflow_permanent_id(
workflow_permanent_id=workflow_permanent_id,
@@ -1334,6 +1338,7 @@ class WorkflowService:
page=page,
page_size=page_size,
status=status,
search_key=search_key,
)
async def create_workflow_run(