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 @@ -9,6 +9,7 @@

### Bugfixes

- Filter dashboard failed flow tile on start_time instead of updated timestamp - [#1028](https://github.com/PrefectHQ/ui/pull/1028)
- Stop role reset in the team member invite dialog - [#1019](https://github.com/PrefectHQ/ui/pull/1019)

## 2021-08-18
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 }
start_time: { _gte: $heartbeat }
}
distinct_on: flow_id
order_by: { flow_id: asc, updated: desc }
order_by: { flow_id: asc, 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
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 start time
</span>
</v-tooltip>

Expand Down