-
Notifications
You must be signed in to change notification settings - Fork 361
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-8007] - DBaaS enhancements summary and settings #10939
Conversation
e89ae34
to
177ba94
Compare
Coverage Report: ✅ |
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.
Looks good, left a few minor points of feedback. I do think the readOnly
vs read_only
should be addressed.
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.
Nice job on this test. Clean and concise 🧼
|
||
const deleteClusterCopy = | ||
'Deleting a database cluster is permanent and cannot be undone.'; | ||
let deleteClusterCopy = 'Permanently remove an unused database cluster.'; |
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 think the legacy copy is a bit better.
What is the user wants to delete an in-use database cluster? Is the API really going to stop them? The copy makes it sound like the database must be unused to delete it
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.
As far as I know the copy came from tech writing, but I can check.
Maintenance Window | ||
{isLegacy | ||
? 'Maintenance Window' | ||
: 'Set a Weekly Maintenance Window'} |
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.
All other headings on this page don't use verbs. I'd prefer if we keep headings consistent, but that's just my opinion.
: 'Set a Weekly Maintenance Window'} | |
: 'Weekly Maintenance Window'} |
packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/MaintenanceWindow.tsx
Outdated
Show resolved
Hide resolved
@@ -372,6 +372,17 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => { | |||
/> | |||
</Box> | |||
) : null} | |||
{database.platform === 'rdbms-default' && database.hosts.readOnly ? ( |
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:
{database.platform === 'rdbms-default' && database.hosts.readOnly ? ( | |
{database.platform === 'rdbms-default' && database.hosts.readOnly && ( |
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.
✅ confirmed copy updates
✅ confirm radios hidden for v2
thanks for the added test coverage! 🎉
left a few small, optional comments below
...ges/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettings.test.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettings.tsx
Outdated
Show resolved
Hide resolved
@@ -173,22 +171,30 @@ export const MaintenanceWindow = (props: Props) => { | |||
onSubmit: handleSaveMaintenanceWindow, | |||
}); | |||
|
|||
const isLegacy = database.platform === 'rdbms-legacy'; | |||
|
|||
const typographyDatabase = |
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.
nitpick: I think we normally use capitalized snake case for copy constants, but someone correct me if I'm wrong!
const typographyDatabase = | |
const TYPOGRAPHY_DATABASE = |
these constants could also be moved to the top of the scope, outside the component. Alternatively, you could do something like you did with the copies in DatabaseSettings
:
const typographyDatabase = isLegacy ? ... : ...
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.
Not sure, other places have camelCase for text copy. Personally, I'd do CAPS for const but not sure the standard.
3326bf6
to
94ddd42
Compare
94ddd42
to
179bf7e
Compare
Description 📝
DBaaS enhancements to the Summary and Settings tabs
Changes 🔄
List any change relevant to the reviewer.
Target release date 🗓️
9/30/24
How to test 🧪
Prerequisites
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Verification steps
(How to verify changes)
As an Author I have considered 🤔
Check all that apply