Skip to content

Commit

Permalink
Merge pull request #2884 from PrefectHQ/add-new-flow-run-sorts
Browse files Browse the repository at this point in the history
Add new cloud flow run sorts
  • Loading branch information
pleek91 authored Jan 10, 2025
2 parents 7498d7b + b88f22c commit 8a683fe
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/types/SortOptionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,26 @@ export const deploymentSortOptions = [
{ label: 'Z to A', value: 'NAME_DESC' },
]

export const flowRunSortValues = ['ID_DESC', 'END_TIME_DESC', 'CREATED_DESC', 'NAME_DESC', 'NAME_ASC', 'EXPECTED_START_TIME_DESC', 'EXPECTED_START_TIME_ASC', 'NEXT_SCHEDULED_START_TIME_ASC', 'START_TIME_DESC', 'START_TIME_ASC'] as const
export const flowRunSortValues = [
'ID_DESC',
'END_TIME_DESC',
'CREATED_DESC',
'NAME_DESC',
'NAME_ASC',
'EXPECTED_START_TIME_DESC',
'EXPECTED_START_TIME_ASC',
'NEXT_SCHEDULED_START_TIME_ASC',
'START_TIME_DESC',
'START_TIME_ASC',
/**
* Only supported by cloud
*/
'DURATION_DESC',
/**
* Only supported by cloud
*/
'LATENESS_DESC',
] as const
export type FlowRunSortValues = typeof flowRunSortValues[number]
export const defaultFlowRunSort: FlowRunSortValues = 'START_TIME_DESC'

Expand Down

0 comments on commit 8a683fe

Please sign in to comment.