Skip to content

Commit

Permalink
feat: workflow run metrics view (#912)
Browse files Browse the repository at this point in the history
* feat: add callbacks for workflow run completed

* add tenant id to resolve row

* add finishedBefore, finishedAfter to workflow runs query

* add more callbacks

* feat: tenant ids and loggers in callback

* feat: workflow run metrics frontend

* fix: frontend build
  • Loading branch information
abelanger5 authored Sep 27, 2024
1 parent c24d65b commit 925b265
Show file tree
Hide file tree
Showing 29 changed files with 1,350 additions and 126 deletions.
16 changes: 16 additions & 0 deletions api-contracts/openapi/paths/workflow/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,22 @@ workflowRuns:
schema:
type: string
format: date-time
- description: The time after the workflow run was finished
in: query
name: finishedAfter
example: "2021-01-01T00:00:00Z"
required: false
schema:
type: string
format: date-time
- description: The time before the workflow run was finished
in: query
name: finishedBefore
example: "2021-01-01T00:00:00Z"
required: false
schema:
type: string
format: date-time
- description: The order by field
in: query
name: orderByField
Expand Down
8 changes: 8 additions & 0 deletions api/v1/server/handlers/workflows/list_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ func (t *WorkflowService) WorkflowRunList(ctx echo.Context, request gen.Workflow
listOpts.CreatedBefore = request.Params.CreatedBefore
}

if request.Params.FinishedAfter != nil {
listOpts.FinishedAfter = request.Params.FinishedAfter
}

if request.Params.FinishedBefore != nil {
listOpts.FinishedBefore = request.Params.FinishedBefore
}

if request.Params.Limit != nil {
limit = int(*request.Params.Limit)
listOpts.Limit = &limit
Expand Down
62 changes: 41 additions & 21 deletions api/v1/server/oas/gen/openapi.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"dompurify": "^3.1.6",
"jotai": "^2.6.0",
"js-confetti": "^0.12.0",
"lucide-react": "^0.446.0",
"monaco-themes": "^0.4.4",
"prism-react-renderer": "^2.3.0",
"qs": "^6.11.2",
Expand All @@ -84,6 +85,7 @@
"react-router-dom": "^6.20.0",
"react-syntax-highlighter": "^15.5.0",
"reactflow": "^11.10.3",
"recharts": "^2.12.7",
"tailwind-merge": "^2.0.0",
"tailwindcss-animate": "^1.0.7",
"timeago-react": "^3.0.6",
Expand Down
Loading

0 comments on commit 925b265

Please sign in to comment.