-
Notifications
You must be signed in to change notification settings - Fork 367
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
upcoming: [DI-21814] - ACLP UI - DBaaS instances order by label #11224
upcoming: [DI-21814] - ACLP UI - DBaaS instances order by label #11224
Conversation
const platformFilter = | ||
resourceType === 'dbaas' ? { platform: 'rdbms-default' } : {}; | ||
|
||
const orderFilter: Partial<Filter> = | ||
resourceType === 'dbaas' ? { '+order': 'asc', '+order_by': 'label' } : {}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: we may want to consider something like the following so that it will be easier to apply different filters to different entities once more are added
const resourseFilterMap: Record<string, Filter> = {
dbaas: { '+order': 'asc', '+order_by': 'label', platform: 'rdbms-default' },
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that too ++
const platformFilter = | ||
resourceType === 'dbaas' ? { platform: 'rdbms-default' } : {}; | ||
|
||
const orderFilter: Partial<Filter> = | ||
resourceType === 'dbaas' ? { '+order': 'asc', '+order_by': 'label' } : {}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that too ++
@@ -46,16 +46,21 @@ export const CloudPulseResourcesSelect = React.memo( | |||
const platformFilter = | |||
resourceType === 'dbaas' ? { platform: 'rdbms-default' } : {}; | |||
|
|||
const orderFilter: Partial<Filter> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need Partial
const orderFilter: Partial<Filter> = | |
const orderFilter: Filter = |
@ankitaakamai let's make sure we make the changes requested in #11226 |
@jaalah-akamai , added the suggestions from @bnussman-akamai in the release PR https://github.com/linode/manager/pull/11226/commits Now it is ready for merging We can close this PR, anyway the release PR gets merged to develop as well. |
Description 📝
Added one new filter - orderFilter for fetching instances in dbass servictype.
Changes 🔄
Target release date 🗓️
12-11-2024
Preview 📷
How to test 🧪
Verification steps
As an Author I have considered 🤔
Check all that apply