diff --git a/Changelog.md b/Changelog.md index 0277b0427..af540ea0a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ ### Bugfixes +- Filter dashboard failed flow tile on scheduled_start_time instead of updated timestamp - [#1028](https://github.com/PrefectHQ/ui/pull/1028) - Remove reference to secrets in the automation webhook url input - [#1036](https://github.com/PrefectHQ/ui/pull/1036) - Update the dict component to ignore null k/v pairs - [#1029](https://github.com/PrefectHQ/ui/pull/1029) - Remove parent query from task run page - [#1025](https://github.com/PrefectHQ/ui/pull/1025) diff --git a/src/graphql/Dashboard/flow-failures.gql b/src/graphql/Dashboard/flow-failures.gql index fd3262051..695e4db71 100644 --- a/src/graphql/Dashboard/flow-failures.gql +++ b/src/graphql/Dashboard/flow-failures.gql @@ -4,10 +4,10 @@ query FlowFailures($projectId: uuid, $heartbeat: timestamptz, $tenantId: uuid) { tenant_id: { _eq: $tenantId } flow: { project_id: { _eq: $projectId } } state: { _eq: "Failed" } - updated: { _gte: $heartbeat } + scheduled_start_time: { _gte: $heartbeat } } distinct_on: flow_id - order_by: { flow_id: asc, updated: desc } + order_by: { flow_id: asc, scheduled_start_time: desc } ) { flow_id state_timestamp @@ -18,6 +18,6 @@ query FlowFailures($projectId: uuid, $heartbeat: timestamptz, $tenantId: uuid) { flow_group_id } - updated + scheduled_start_time } } diff --git a/src/pages/Dashboard/FailedFlows-Tile.vue b/src/pages/Dashboard/FailedFlows-Tile.vue index a913d19fe..bf2988913 100644 --- a/src/pages/Dashboard/FailedFlows-Tile.vue +++ b/src/pages/Dashboard/FailedFlows-Tile.vue @@ -123,7 +123,7 @@ export default { - Filter by when flows were last updated + Filter on flow run scheduled start time