Skip to content

Conversation

@nirinchev
Copy link
Collaborator

Proposed changes

Renames the feature flag to search considering it also guards a few search-related experiences.

@nirinchev nirinchev requested a review from a team as a code owner November 25, 2025 16:10
Copilot AI review requested due to automatic review settings November 25, 2025 16:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames the vectorSearch feature flag to search throughout the codebase to better reflect that it guards both vector search and general search-related functionality in MongoDB Atlas.

Key Changes

  • Renamed the preview feature flag from vectorSearch to search in code, tests, and documentation
  • Updated all references to the flag in tool implementations, configuration validation, and user-facing messages
  • Added a new test:local npm script for running tests without Atlas dependencies

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/common/schemas.ts Updated the preview feature value from "vectorSearch" to "search"
src/common/config/createUserConfig.ts Renamed variable and updated warning messages to reference "search" instead of "vectorSearch"
src/common/search/embeddingsProvider.ts Updated feature flag check in VoyageEmbeddingsProvider configuration
src/tools/mongodb/create/createIndex.ts Updated feature flag checks and tool description references
src/tools/mongodb/create/insertMany.ts Updated feature flag checks for embedding parameters
src/tools/mongodb/delete/dropIndex.ts Updated feature flag check for index type validation
src/tools/mongodb/metadata/collectionIndexes.ts Updated feature flag check for search index support
src/tools/mongodb/metadata/explain.ts Updated feature flag check in aggregate arguments schema
src/tools/mongodb/read/aggregate.ts Updated feature flag check in aggregate arguments schema
src/tools/mongodb/read/export.ts Updated feature flag check in aggregate arguments schema
tests/unit/common/config.test.ts Updated test cases to use "search" flag and verify new warning messages
tests/integration/tools/mongodb/create/createIndex.test.ts Updated test configurations to use "search" feature flag
tests/integration/tools/mongodb/create/insertMany.test.ts Updated test configurations to use "search" feature flag
tests/integration/tools/mongodb/delete/dropIndex.test.ts Updated test configurations to use "search" feature flag
tests/integration/tools/mongodb/metadata/collectionIndexes.test.ts Updated test configuration to use "search" feature flag
tests/integration/tools/mongodb/read/aggregate.test.ts Updated test configuration to use "search" feature flag
README.md Updated documentation to reference "search" flag and clarified it covers both Atlas Search and Vector Search
package.json Added new test:local script for running tests without Atlas dependencies

@coveralls
Copy link
Collaborator

coveralls commented Nov 25, 2025

Pull Request Test Coverage Report for Build 19701495156

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 13 of 14 (92.86%) changed or added relevant lines in 10 files are covered.
  • 16 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 79.824%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/common/search/embeddingsProvider.ts 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/common/config/configUtils.ts 16 70.21%
Totals Coverage Status
Change from base Build 19674974109: -0.1%
Covered Lines: 6368
Relevant Lines: 7885

💛 - Coveralls

Copy link
Collaborator

@himanshusinghs himanshusinghs left a comment

Choose a reason for hiding this comment

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

I think a few tests needs to be fixed to pass the correct preview features as well. The rest of the changes looks good.

@himanshusinghs
Copy link
Collaborator

It's kinda weird that all the tests are passing. The feature flag in a few are not correctly passed.

@himanshusinghs
Copy link
Collaborator

Here are the ones I could find:
tests/accuracy/createIndex.test.ts
tests/accuracy/dropIndex.test.ts
tests/accuracy/insertMany.embeddings.test.ts
tests/integration/tools/mongodb/create/createIndex.test.ts
tests/unit/toolBase.test.ts

@himanshusinghs
Copy link
Collaborator

Just one more 😄
tests/integration/tools/mongodb/create/createIndex.test.ts:33

@nirinchev nirinchev enabled auto-merge (squash) November 26, 2025 11:03
@nirinchev nirinchev merged commit 6325422 into main Nov 26, 2025
17 checks passed
@nirinchev nirinchev deleted the ni/ff-rename branch November 26, 2025 11:08
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.

5 participants