mirror of https://github.com/rancher/dashboard.git
Ensure current lack of sorting/filtering on generated fields is handled
- Currently isn't possible to sort/filter on fields like id, metadata.state.name - This should be addressed in the next1 release (https://github.com/rancher/rancher/issues/45635) - So for server-side lists ensure we don't sort / filter by either
This commit is contained in:
parent
ef3db21270
commit
5c0f0e23d8
|
|
@ -17,15 +17,16 @@ export const STEVE_ID_COL = {
|
|||
name: 'steve-id',
|
||||
labelKey: 'tableHeaders.id',
|
||||
value: 'id',
|
||||
sort: ['id'],
|
||||
search: 'id',
|
||||
sort: false, // sort: ['id'], // Pending API support
|
||||
search: false, // search: 'id', // Pending API support
|
||||
};
|
||||
|
||||
export const STEVE_STATE_COL = {
|
||||
...STATE,
|
||||
// value: 'metadata.state.name', Use the state as defined by the resource rather than converted via the model.
|
||||
// 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'], // Pending API support
|
||||
sort: false, // ['metadata.state.name'], // Pending API support
|
||||
search: false, // 'metadata.state.name', // Pending API support
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue