-
Notifications
You must be signed in to change notification settings - Fork 399
fix: [UIE-10522] - Disable credential buttons for resuming state #13505
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
Changes from all commits
c487ef4
f78f7b8
1e82c69
e635e9f
cbc0882
bd00667
d94dd62
14965ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/api-v4": Removed | ||
| --- | ||
|
|
||
| Old `failed` property from `DatabaseStatus` ([#13505](https://github.com/linode/manager/pull/13505)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Fixed | ||
| --- | ||
|
|
||
| Disable Database credential buttons for resuming state ([#13505](https://github.com/linode/manager/pull/13505)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ import { DB_ROOT_USERNAME } from 'src/constants'; | |
| import { | ||
| CLUSTER_PROVISIONING_TEXT, | ||
| CREDENTIALS_ERROR_TEXT, | ||
| DISABLE_CREDENTIAL_STATES, | ||
| DISABLED_PASSWORD_BUTTON_TEXT, | ||
| } from 'src/features/Databases/constants'; | ||
| import { useFlags } from 'src/hooks/useFlags'; | ||
|
|
@@ -74,9 +75,7 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => { | |
| } | ||
| }, [showCredentials, credentialsError]); | ||
|
|
||
| const disableShowBtn = ['failed', 'provisioning', 'suspended'].includes( | ||
| database.status | ||
| ); | ||
| const disableShowBtn = DISABLE_CREDENTIAL_STATES.includes(database.status); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We had a similar change before in #13487 where We may want to check to make sure there aren't any others that can cause this such as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the backend throws an error for anything that isn't Removed The other states are very ephemeral (I wasn't able to catch the in-between
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw the discussion and it sounds like this could also change in the future. The different statuses you have listed for |
||
| const credentialsBtn = (handleClick: () => void, btnText: string) => { | ||
| return ( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.