Skip to content

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

Merged
merged 2 commits into from
May 7, 2025

Conversation

rubydong
Copy link
Collaborator

@rubydong rubydong commented May 7, 2025

Description

https://jira.mongodb.org/browse/CLOUDP-317478

in variant
image

in control
image

tested in cloud-dev with redwood running on local

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@rubydong rubydong added the no release notes Fix or feature not for release notes label May 7, 2025
@rubydong rubydong marked this pull request as ready for review May 7, 2025 15:15
@rubydong rubydong changed the title CLOUDP-317478: Made early indexes variables update when changed feat: Made early indexes variables update when changed CLOUDP-317478 May 7, 2025
@github-actions github-actions bot added the feat label May 7, 2025
Copy link
Member

@Anemy Anemy left a 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.

Comment on lines 16 to 18

// Value can change from false to true during allocation / checking
'enableIndexesGuidanceExp',
Copy link
Member

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.

Copy link
Member

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.

Copy link
Collaborator Author

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

Comment on lines +298 to +299
const updateEarlyIndexesPreferences = async () => {
await preferencesAccess.current.savePreferences({
Copy link
Member

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?

Suggested change
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({

@rubydong rubydong merged commit 240623d into main May 7, 2025
23 of 25 checks passed
@rubydong rubydong deleted the cloudp-317478 branch May 7, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants