-
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
fix: [UIE-8194] dbaas maintenance pending updates state should display when any pending updates are available #11387
Changes from all commits
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/manager": Fixed | ||
--- | ||
|
||
dbaas settings maintenance does not display review state and allows version upgrade when updates are available ([#11387](https://github.com/linode/manager/pull/11387)) |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -230,9 +230,7 @@ export const getDatabasesDescription = ( | |||||
}; | ||||||
|
||||||
export const hasPendingUpdates = (pendingUpdates?: PendingUpdates[]) => | ||||||
Boolean( | ||||||
pendingUpdates?.some((update) => update.deadline || update.planned_for) | ||||||
); | ||||||
Boolean(pendingUpdates && pendingUpdates?.length > 0); | ||||||
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.
Suggested change
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. @abailly-akamai The Also, for the components using this method, the property that gets provided for Since this just a fix for the existing behavior, can we leave it as is? 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. sure thing, I just assumed the optional chaining was taking care of that π |
||||||
|
||||||
export const isDefaultDatabase = ( | ||||||
database: Pick<DatabaseInstance, 'platform'> | ||||||
|
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.
@cpathipa The update was to have a Tooltip icon display when there are pending updates disabling the Upgrade Version button. Just pushed up another change to adjust the condition and I've updated the description.