-
Notifications
You must be signed in to change notification settings - Fork 364
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
feat: [UIE-7995] DBaaS Monitor GA #11105
Conversation
f2ebf9a
to
86173d2
Compare
|
||
export const DatabaseMonitor = ({ database }: Props) => { | ||
const databaseId = database?.id; | ||
const dbaasDashboardId = 1; |
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.
What is this constant 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 is the dashboard ID we need to use access data for DBaaS with the CloudPulseDashboardWithFilters component. There was a discussion on the ticket UIE-7995.
It's always supposed to be 1, so I stored in a variable for context, but can remove it and have it in the template instead if that's preferred.
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 can't imagine each service that's onboarded will need to hardcode their dashboard Id, should this be coming from the API? cc: @venkymano-akamai
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.
@jaalah-akamai Yes!!, we do have an API for listing dashboards, specifically the ACLP */dashboards API, which currently returns multiple dashboard IDs for both standard and custom dashboards. To identify the primary dashboard when there are multiple standard dashboards for a service, we may need to enhance the API to make that distinction.
As of now, for DBaaS, there's only one standard dashboard provisioned, so the team can use the /dashboards API to fetch the dashboard ID without issues. However, if additional standard dashboards are added in the future, this approach may become problematic.
For now, it is acceptable to use a hardcoded dashboard ID, as it will be manually provided during the service onboarding process to ACLP through the ACLP onboarding template.
Alternatively, as a second enhancement option, we could modify the ACLP reusable dashboard component to accept an additional service type parameter. Based on this parameter, the component would automatically fetch the primary dashboard for the specified service type.
Both options require some level of enhancement, and we can decide which approach to take based on product decisions. Thanks for the suggestion.
packages/manager/src/features/Databases/DatabaseDetail/index.tsx
Outdated
Show resolved
Hide resolved
8bef13f
to
ebabf10
Compare
Coverage Report: ✅ |
ebabf10
to
7bc29a6
Compare
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.
LGTM!
Cloud Manager E2E Run #6695
Run Properties:
|
Project |
Cloud Manager E2E
|
Run status |
Passed #6695
|
Run duration | 27m 24s |
Commit |
5e54d46a76: feat: [UIE-7995] DBaaS Monitor GA (#11105)
|
Committer | smans-akamai |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
5
|
Pending |
2
|
Skipped |
0
|
Passing |
437
|
Description 📝
Adding Monitor tab to the database details view.
Changes 🔄
List any change relevant to the reviewer.
Target release date 🗓️
10/28/24
Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
As an Author I have considered 🤔
Check all that apply
Commit message and pull request title format standards
<commit type>: [JIRA-ticket-number] - <description>
Commit Types:
feat
: New feature for the user (not a part of the code, or ci, ...).fix
: Bugfix for the user (not a fix to build something, ...).change
: Modifying an existing visual UI instance. Such as a component or a feature.refactor
: Restructuring existing code without changing its external behavior or visual UI. Typically to improve readability, maintainability, and performance.test
: New tests or changes to existing tests. Does not change the production code.upcoming
: A new feature that is in progress, not visible to users yet, and usually behind a feature flag.Example:
feat: [M3-1234] - Allow user to view their login history