Skip to content

chore(compass-indexes): align default index names with cloud COMPASS-9257#7782

Merged
johnjackweir merged 4 commits intomainfrom
COMPASS-9257
Feb 12, 2026
Merged

chore(compass-indexes): align default index names with cloud COMPASS-9257#7782
johnjackweir merged 4 commits intomainfrom
COMPASS-9257

Conversation

@johnjackweir
Copy link
Collaborator

@johnjackweir johnjackweir commented Feb 10, 2026

Description

COMPASS-9257

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
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

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)

@johnjackweir johnjackweir requested a review from a team as a code owner February 10, 2026 22:41
@johnjackweir johnjackweir changed the title chore: align default index names with cloud (#9257) chore: align default index names with cloud COMPASS-9257 Feb 10, 2026
@johnjackweir johnjackweir changed the title chore: align default index names with cloud COMPASS-9257 chore(compass-indexes): align default index names with cloud COMPASS-9257 Feb 10, 2026
setIndexDefinition(ATLAS_VECTOR_SEARCH_TEMPLATE.snippet);
onChangeTemplate(ATLAS_VECTOR_SEARCH_TEMPLATE);

if (indexName === 'default') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this component is used for both create & update. update doesn't show the option to switch types so we're good now - just to be safe we could add a check here to ensure we don't change the name in that case

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this whole code is probably useless in that case, so it should be a return at the top of the fn and also is a preexisting problem, feel free to ignore me :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good thought 🤔

it's unclear to me what the intended behavior would to update the index type for an existing index. I feel like we might cause more confusion if we intentionally enabled the "changeIndexType" button but then had the onClick handler just silently fail, so I'm tempted to just leave it as is

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'm absolutely not proposing to enable it, I was just thinking what would happen if it did became enabled at some point. leaving it as it is is fine.

setIndexDefinition(ATLAS_SEARCH_TEMPLATES[0].snippet);
onChangeTemplate(ATLAS_SEARCH_TEMPLATES[0]);

if (indexName === 'vector_index') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@johnjackweir johnjackweir merged commit 4cfb89d into main Feb 12, 2026
53 of 56 checks passed
@johnjackweir johnjackweir deleted the COMPASS-9257 branch February 12, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants