Skip to content

feat(mongodb-ns): show __mdb_internal_search in database lists COMPASS-10948 - #853

Open
karimelhammady wants to merge 1 commit into
mainfrom
COMPASS-10948-mdb-internal-search-visible
Open

feat(mongodb-ns): show __mdb_internal_search in database lists COMPASS-10948#853
karimelhammady wants to merge 1 commit into
mainfrom
COMPASS-10948-mdb-internal-search-visible

Conversation

@karimelhammady

@karimelhammady karimelhammady commented Aug 5, 2026

Copy link
Copy Markdown

Description

Auto-Embedding stores its generated embeddings in __mdb_internal_search on the customer's cluster, and customers need to browse them. UIs hide __mdb_internal_* databases by filtering on internal, so Compass and Data Explorer currently drop it from the database list.

internal both classifies internal databases and drives that filtering. This separates the two: __mdb_internal_search is exempt from internal so it is no longer hidden, while a dedicated clause keeps it special/specialish — it is still a MongoDB-managed database. Both changes need to stay together: without the special clause, Compass treats these collections as user data and offers the Global Writes tab and the data-modeling wizards for them. The match is exact, so __mdb_internal_search_* and every other __mdb_internal_* database stay internal.

Open Questions

On multi-tenant clusters mongot can name this database <prefix>___mdb_internal_search, taking the prefix from the source database name and falling back to the bare name when it has no underscore AtlasInternalDatabaseResolver. The prefixed form never matched ^__mdb_internal_, so it is already visible but never special, and the exact match here doesn't cover it — should the clause use a suffix match instead? This is from reading the resolver; I haven't confirmed it against a live multi-tenant cluster.

Checklist

…S-10948

Exempt the __mdb_internal_search database (Atlas Auto-Embedding storage)
from `internal` so UIs like Compass's database list stop hiding it, while
keeping it `special`/`specialish` via a dedicated clause so it retains
system-namespace treatment everywhere else.
Copilot AI lite review requested due to automatic review settings August 5, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts mongodb-ns namespace classification so __mdb_internal_search is no longer treated as internal (and thus not hidden by UIs filtering on that flag) while still being treated as MongoDB machinery via special/specialish.

Changes:

  • Exempt __mdb_internal_search from internal detection while keeping other __mdb_internal_* databases internal.
  • Add an explicit special clause for __mdb_internal_search to preserve “machinery” behavior without relying on internal.
  • Add/extend tests and document the updated internal semantics.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/mongodb-ns/src/index.ts Updates internal regex and keeps __mdb_internal_search classified as special.
packages/mongodb-ns/src/index.spec.ts Adds coverage for the __mdb_internal_search exemption and special/specialish behavior.
packages/mongodb-ns/README.md Documents the internal exception for __mdb_internal_search and shows internal in the example output.
Suppressed comments (1)

packages/mongodb-ns/src/index.spec.ts:80

  • Test case description has a spelling typo: "acccept" should be "accept".
    it('should acccept `__mdb_internal_search`', function () {
      assert(ns('__mdb_internal_search').specialish);

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +72 to +74
// COMPASS-10948: special via its own clause, not via `internal`.
it('should acccept `__mdb_internal_search`', function () {
assert(ns('__mdb_internal_search').special);
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