Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions shell/config/pagination-table-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ export const STEVE_ID_COL = {
};

export const STEVE_STATE_COL = {
...STATE,
// Note, we're show the 'state' as per model, not the 'metadata.state.name' that's available in the model to remotely sort/filter
// Need to investigate whether we should 'dumb down' the state we show to the native one (tracked via https://github.com/rancher/dashboard/issues/8527)
// This means we'll show something different to what we sort and filter on.
sort: ['metadata.state.name'],
...STATE,
// non vai sort works on colour --> name. the best we can do here is error --> transitioning --> name
sort: ['metadata.state.error:desc', 'metadata.state.transitioning:desc', 'metadata.state.name'],
search: 'metadata.state.name',
};

Expand Down
2 changes: 2 additions & 0 deletions shell/plugins/steve/steve-pagination-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ class StevePaginationUtils extends NamespaceProjectFilters {
{ field: 'metadata.namespace' },
{ field: 'id' },
{ field: 'metadata.state.name' },
{ field: 'metadata.state.error' },
{ field: 'metadata.state.transitioning' },
{ field: 'metadata.creationTimestamp' },
{ field: 'metadata.labels', startsWith: true },
],
Expand Down
Loading