Add a title search parameter to workflows endpoint, add index to work… (#1638)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-01-25 02:59:02 +08:00
committed by GitHub
parent 5c37ebbb9e
commit ef93ad65d3
5 changed files with 37 additions and 0 deletions

View File

@@ -911,6 +911,7 @@ async def get_workflows(
page_size: int = Query(10, ge=1),
only_saved_tasks: bool = Query(False),
only_workflows: bool = Query(False),
title: str = Query(""),
current_org: Organization = Depends(org_auth_service.get_current_org),
) -> list[Workflow]:
"""
@@ -930,6 +931,7 @@ async def get_workflows(
page_size=page_size,
only_saved_tasks=only_saved_tasks,
only_workflows=only_workflows,
title=title,
)