-
Notifications
You must be signed in to change notification settings - Fork 391
change: [DI-26319] - Updated logic to render filters based on dashboard id instead of service type #12637
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
change: [DI-26319] - Updated logic to render filters based on dashboard id instead of service type #12637
Conversation
…rd id instead of service type
| > | ||
| {showAppliedFilters && ( | ||
| <CloudPulseAppliedFilterRenderer | ||
| dashboardId={dashboard.id} |
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.
question(non-blocking): Is it not confusing that we have both a dashboard.id and dashboardId? How do we know which to pass into CloudPulseAppliedFilterRenderer?
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.
both are same. If you see here CloudPulseDashboardWithFilters, we are fetching dashboard object for that dashboardId, so at the end both ids will be same only
coliu-akamai
left a comment
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.
thank you!
|
|
||
| export const FILTER_CONFIG: Readonly< | ||
| Map<string, CloudPulseServiceTypeFilterMap> | ||
| Map<number, CloudPulseServiceTypeFilterMap> |
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.
suggestion (optional, nonblocking): for more type safety, perhaps we could do a union type like type FilterConfigId = 1 | 2 | 3 | 4 and then use it here
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.
this. value of Id is coming from API response and based on that filter will be rendered, that's why kept as number to have a fallback logic
Cloud Manager UI test results🔺 3 failing tests on test run #9 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/notificationsAndEvents/qemu-reboot-upgrade-notice.spec.ts,cypress/e2e/core/account/restricted-user-details-pages.spec.ts,cypress/e2e/core/linodes/linode-storage.spec.ts" |
|||||||||||||||||||||||
…rd id instead of service type (linode#12637) * change: [DI-26319] - Updated logic to render filters based on dashboard id instead of service type * Removed unused code * change: [DI-26319] - Updated mock data * change: [DI-26319] - Updated dashboard id for firewall and nodebalancer * change: [DI-26319] - Updated logic to render filter * upcoming: [DI-26319] - Updated mock data * change: [DI-26319] - Fixed failing test cases * added changeset
Description 📝
Dashboard filters now will be rendered based on dashboard id instead of service type
Changes 🔄
List any change(s) relevant to the reviewer.
Scope 🚢
Upon production release, changes in this PR will be visible to:
Target release date 🗓️
26th August
Preview 📷
Note
No difference in the UI after this change.
How to test 🧪
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅