-
Notifications
You must be signed in to change notification settings - Fork 365
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-7536] - Disable fetching buckets with clusters when ObjMultiClusterEnabled flag is enabled. #10282
Conversation
…bjMultiClusterEnabled flag is enabled.
…ClusterEnabled flag is enabled.
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.
ObjMultiCluster
flag + MSW on:
- No network calls fired with clusters to fetch buckets ✅
- Buckets and Access flows use
region
instead ofcluster
✅
ObjMultiCluster
flag and MSW off:
- No regressions observed in OBJ flow ✅
Compared to develop
or even this branch with the feature flag off, when I have the feature flag on and try to navigate to the Search landing page, I get an infinite spinner.
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.
Approving pending Dajahi's feedback is addressed, merge conflicts are resolved, and no one else can replicate the loading issue with the search.
With the feature flag and MSW:
- Ensured no network calls fired to fetch buckets with clusters*.
- Verified the buckets flow. Ensure all buckets flow (Access, SSL/TLS, upload etc.) endpoints should use region instead of cluster.
- Verified the Access flow. Ensure all access flow endpoints should use region instead of cluster.
Without the feature flag and mocks:
- Verified there is no regression in whole OBJ flow.
- Verify there is no regression in SearchBar, SearchLanding and PrimaryNav usage.
Compared to develop or even this branch with the feature flag off, when I have the feature flag on and try to navigate to the Search landing page, I get an infinite spinner.
@dwiley-akamai - I couldn't replicate this. Are you still seeing it, and did mean something other than either of the searches I show in this video? This was on this branch with feature flag and mocks off.
Screen.Recording.2024-03-21.at.10.30.17.AM.mov
*One other question b/c I'm not fully familiar with the OMC work: I see we're still fetching the list of object storage clusters on the OBJ landing page, but (as intended) not using clusters for buckets. Do we still need to fetch these all clusters for this feature?
packages/manager/.changeset/pr-10282-upcoming-features-1710422378958.md
Outdated
Show resolved
Hide resolved
…378958.md Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
… enabled in buckets landing page.
}; | ||
|
||
// Utility type to enforce at least one of `clusters` or `regions` to be provided. | ||
export type AtLeastOne<T, U = { [K in keyof T]: Pick<T, K> }> = Partial<T> & |
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.
The name of this type feels a little weird to me, sounds like a boolean variable name.
@cpathipa Looks good to me, only one small nitpick with the naming for the |
@mjac0bs I may have worded it confusingly last time, but I'm observing that behavior when the feature flag is on and mocks off. (for the example below, the account has multiple buckets with "iad" in their names) Screen.Recording.2024-03-26.at.4.29.59.PM.movIt shouldn't be an issue when the API is functional, but right now I think |
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.
Going ahead and approving since the core of the ticket is complete
@dwiley-akamai I see what you meant. Handled the fetching of buckets with regions from the search landing page more gracefully when the obj flag is on and MSW is off. SearchLandingPage.mov |
…MultiClusterEnabled flag is enabled. (linode#10282) * upcoming: [M3-7536] - Disable fetching buckets with clusters when isObjMultiClusterEnabled flag is enabled. * Added changeset: Disable fetching buckets with clusters when ObjMultiClusterEnabled flag is enabled. * code cleanup * Update packages/manager/.changeset/pr-10282-upcoming-features-1710422378958.md Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com> * Update regions imports. * PR - feedback - @mjac0bs - disable fetching clusters when OMC flag is enabled in buckets landing page. * PR -feedback - @DevDW - naming convention regionsSupportingObjectStorage * Organize typeHelpers util and moved AtLeastOne util type to typeHelpers file. * Update SearchLanding.tsx --------- Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Description 📝
Disables fetching buckets with clusters when ObjMultiClusterEnabled flag is enabled across the CM.
Target release date 🗓️
04/20
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
Turn on the ObjMultiCluster flag and MSW
Turn off the ObjMultiCluster flag and MSW
As an Author I have considered 🤔
Check all that apply