Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed flows card should use start_time timestamp instead of updated #1028

Merged
merged 11 commits into from
Sep 2, 2021
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/Dashboard/flow-failures.gql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,6 +18,6 @@ query FlowFailures($projectId: uuid, $heartbeat: timestamptz, $tenantId: uuid) {
flow_group_id
}

updated
scheduled_start_time
}
}
2 changes: 1 addition & 1 deletion src/pages/Dashboard/FailedFlows-Tile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default {
</CardTitle>
</template>
<span>
Filter by when flows were last updated
Filter on flow run scheduled start time
</span>
</v-tooltip>

Expand Down