fix(mongodb): offer rename collection on legacy agent connections

This commit is contained in:
Loc Nguyen authored and GitHub committed 2026-09-22 11:05:35 +08:00
1 parent 9fa61d53b6
commit 808317e0e7
5 files changed
+33 -23

No files matched your search

@@ -277,7 +277,8 @@ describe("MongoDB sidebar mutation runtime", () => {
activeNode.value = mongoCollectionNode();
expect(feature.canDropMongoCollection.value).toBe(true);
expect(feature.canDropAllMongoIndexes.value).toBe(false);
expect(feature.canRenameMongoCollection.value).toBe(false);
// The Legacy Agent supports renameCollection (capability-gated in the backend).
expect(feature.canRenameMongoCollection.value).toBe(true);
expect(feature.canCloneMongoCollection.value).toBe(true);
expect(feature.canCreateMongoIndex.value).toBe(false);
activeNode.value = mongoIndexesGroupNode();