backend: normalize returns for evals (items, total); ensure title to … (#2329)

This commit is contained in:
Shuchang Zheng
2025-05-12 08:30:37 -07:00
committed by GitHub
parent 04ed3c8dab
commit 1d1a4d72ea
4 changed files with 73 additions and 4 deletions

View File

@@ -677,6 +677,16 @@ class WorkflowService:
organization_id=organization_id, page=page, page_size=page_size, status=status
)
async def get_workflow_runs_count(
self,
organization_id: str,
status: list[WorkflowRunStatus] | None = None,
) -> int:
return await app.DATABASE.get_workflow_runs_count(
organization_id=organization_id,
status=status,
)
async def get_workflow_runs_for_workflow_permanent_id(
self,
workflow_permanent_id: str,