-
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
upcoming: [M3-7696] - Edit Access key Drawer - Fix Save button is disabled #10118
Conversation
…rawer - Fix save button is disabled.
Coverage Report: ✅ |
packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/OMC_AccessKeyDrawer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/utils.ts
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/utils.ts
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/utils.ts
Outdated
Show resolved
Hide resolved
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.
Agreed with Alban's suggestion about the Formik types, but otherwise this looks good. Thanks @cpathipa!
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.
UI and functionality with feature flag off ✅
Modified UI and functionality (incl. expected payloads upon save) with feature flag on ✅
packages/manager/.changeset/pr-10118-upcoming-features-1706544516803.md
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/OMC_AccessKeyDrawer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/ObjectStorage/AccessKeyLanding/utils.test.ts
Outdated
Show resolved
Hide resolved
…516803.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
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.
If I turn off the MSW with the OBJ Multi-Cluster flag still on, the page crashes. Can we handle this error more gracefully?
Screen.Recording.2024-02-06.at.4.07.46.PM.mov
isRestrictedUser || | ||
(mode !== 'creating' && | ||
objectStorageKey && | ||
!hasLabelOrRegionsChanged(formik.values, objectStorageKey)); |
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.
Wondering if we can pass in initialValues
here instead of objectStorageKey
?
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 agree it would be a nice improvement - it's making reviewers think something is quite broken
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 don't think we are updating the initialValues
with objectStorageKey
in edit mode.
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.
Thanks for the type improvements and the improved coverage!
All good to go, confirmed changes in the UI as well ✅
packages/manager/src/features/ObjectStorage/AccessKeyLanding/OMC_AccessKeyDrawer.tsx
Show resolved
Hide resolved
@HanaXu Yes, this issue is on my radar and will be addressed with M3-7743. Until then, we should enable the MSW first, then the OBJ feature flag. |
Description 📝
Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(Turn on feature flag)
(Turn off feature flag)
As an Author I have considered 🤔
Check all that apply