-
Notifications
You must be signed in to change notification settings - Fork 214
feat: Made early indexes variables update when changed CLOUDP-317478 #6901
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
Conversation
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, left a comment on adding a mention of a Compass ticket on preferences.
|
||
// Value can change from false to true during allocation / checking | ||
'enableIndexesGuidanceExp', |
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.
Can we move these to under cloudFeatureRolloutAccess
? That ones also can be false -> true.
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.
Also in the comment, can we add TODO(COMPASS-9353): Provide a standard for updating Compass preferences in web
? That way it's mentioned in the code.
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.
updated but not sure if new comment placement is what you were thinking of
const updateEarlyIndexesPreferences = async () => { | ||
await preferencesAccess.current.savePreferences({ |
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, can we add a comment linking this jira ticket so future readers have a bit more context?
const updateEarlyIndexesPreferences = async () => { | |
await preferencesAccess.current.savePreferences({ | |
// TODO(COMPASS-9353): Provide a standard way of updating Compass' preferences from web. | |
// Avoid duplicating this pattern until we address this ticket. | |
const updateEarlyIndexesPreferences = async () => { | |
await preferencesAccess.current.savePreferences({ |
Description
https://jira.mongodb.org/browse/CLOUDP-317478
in variant

in control

tested in cloud-dev with redwood running on local
Checklist
Motivation and Context
Types of changes