Skip to content
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

API Upgrade: Migrating Tree View to V2 #2477

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6afb950
first step, added v2 provider and creating account tree items for Mon…
tnaum-ms Nov 29, 2024
c4909eb
added entrypoint for nosql + renamed classes for simplicity
tnaum-ms Dec 2, 2024
ed2a0c7
added database support to monogodb ru on v2
tnaum-ms Dec 2, 2024
cb911b2
Merge branch 'main' into dev/tnaum/tree-api-migration
tnaum-ms Dec 12, 2024
67eb3e9
wip
tnaum-ms Dec 13, 2024
7f55aaa
feat: Migrating TreeView to V2
bk201- Dec 16, 2024
bc53d00
feat: Migrating TreeView to V2
bk201- Dec 17, 2024
7fd96bd
Merge branch 'dev/sda/tree-api-migration' into dev/tnaum/tree-api-mig…
tnaum-ms Dec 17, 2024
9c71293
integrating with 'provider' changes during API unification
tnaum-ms Dec 17, 2024
fca14b1
expanding contextValue for mongo* workloads
tnaum-ms Dec 18, 2024
f69ed35
typo
tnaum-ms Jan 7, 2025
fea71e5
build fix
tnaum-ms Jan 7, 2025
98dcec2
vCore: added "create document..." menu item
tnaum-ms Jan 7, 2025
a20a6e6
vCore: removed old mongodb create document command
tnaum-ms Jan 7, 2025
3be3615
MongoDB: added azureDatabases.refresh_v2 for Tree APIv2
tnaum-ms Jan 7, 2025
680fafc
removed obsolete test code
tnaum-ms Jan 7, 2025
5758550
updated azuredatabases.refresh behavior to support v2 tree api
tnaum-ms Jan 8, 2025
38a4854
build fixes
tnaum-ms Jan 8, 2025
4e84fde
MongoDB: V1->V2, removed unused commands, deleted and commented out o…
tnaum-ms Jan 8, 2025
2f2490c
MongoDB: V1->V2, removed unused commands, deleted and commented out o…
tnaum-ms Jan 8, 2025
5ad2fd0
resolved build errors, wip
tnaum-ms Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 44 additions & 83 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
},
"dependencies": {
"@azure/arm-cosmosdb": "16.0.0-beta.7",
"@azure/arm-resources": "^5.2.0",
"@azure/arm-postgresql": "^6.1.0",
"@azure/arm-postgresql-flexible": "^7.1.0",
"@azure/cosmos": "^4.1.1",
Expand Down Expand Up @@ -354,21 +355,6 @@
"command": "cosmosDB.createGraphDatabase",
"title": "Create Database..."
},
{
"category": "MongoDB",
"command": "cosmosDB.createMongoCollection",
"title": "Create Collection..."
},
{
"category": "MongoDB",
"command": "cosmosDB.createMongoDatabase",
"title": "Create Database..."
},
{
"category": "MongoDB",
"command": "cosmosDB.createMongoDocument",
"title": "Create Document"
},
{
"category": "Cosmos DB",
"command": "cosmosDB.deleteAccount",
Expand Down Expand Up @@ -409,21 +395,6 @@
"command": "cosmosDB.deleteGraphDatabase",
"title": "Delete Database..."
},
{
"category": "MongoDB",
"command": "cosmosDB.deleteMongoCollection",
"title": "Delete Collection..."
},
{
"category": "MongoDB",
"command": "cosmosDB.deleteMongoDB",
"title": "Delete Database..."
},
{
"category": "MongoDB",
"command": "cosmosDB.deleteMongoDocument",
"title": "Delete Document..."
},
{
"category": "MongoDB",
"command": "cosmosDB.executeAllMongoCommands",
Expand Down Expand Up @@ -467,11 +438,6 @@
"title": "New Mongo Scrapbook",
"icon": "$(new-file)"
},
{
"category": "MongoDB",
"command": "cosmosDB.openCollection",
"title": "Open Collection"
},
{
"category": "Cosmos DB",
"command": "cosmosDB.openDocument",
Expand Down Expand Up @@ -623,6 +589,11 @@
"command": "command.mongoClusters.exportDocuments",
"title": "Export Documents from Collection..."
},
{
"category": "MongoDB Clusters",
"command": "command.mongoClusters.createDocument",
"title": "Create Document..."
},
{
"category": "MongoDB Clusters",
"command": "command.mongoClusters.launchShell",
Expand Down Expand Up @@ -745,26 +716,6 @@
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /postgresServer(?![a-z])/i",
"group": "1@2"
},
{
"command": "cosmosDB.createMongoDatabase",
"when": "view == azureWorkspace && viewItem == cosmosDBMongoServerAttached",
"group": "1@1"
},
{
"command": "cosmosDB.createMongoDatabase",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"group": "1@1"
},
{
"command": "cosmosDB.createMongoDocument",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@1"
},
{
"command": "cosmosDB.createMongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "1@1"
},
{
"command": "cosmosDB.createDocDBDocument",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentsGroup",
Expand Down Expand Up @@ -875,21 +826,6 @@
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "2@1"
},
{
"command": "cosmosDB.deleteMongoDB",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "1@2"
},
{
"command": "cosmosDB.deleteMongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@4"
},
{
"command": "cosmosDB.deleteMongoDocument",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoDocument",
"group": "1@2"
},
{
"command": "cosmosDB.deleteDocDBCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentCollection",
Expand Down Expand Up @@ -970,11 +906,6 @@
"when": "view == azureWorkspace && viewItem == cosmosDBAttachedAccountsWithEmulator",
"group": "1@2"
},
{
"command": "cosmosDB.openCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@2"
},
{
"command": "cosmosDB.copyConnectionString",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
Expand Down Expand Up @@ -1142,39 +1073,69 @@
},
{
"command": "command.mongoClusters.dropCollection",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem == mongoClusters.item.collection"
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.collection/i && viewItem =~ /(mongocluster|mongodb)/i"
},
{
"command": "command.mongoClusters.dropDatabase",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem == mongoClusters.item.database"
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.database/i && viewItem =~ /(mongocluster|mongodb)/i"
},
{
"command": "command.mongoClusters.removeWorkspaceConnection",
"when": "vscodeDatabases.mongoClustersSupportEnabled && view == azureWorkspace && viewItem == mongoClusters.item.mongoCluster"
"when": "vscodeDatabases.mongoClustersSupportEnabled && view == azureWorkspace && viewItem =~ /treeitem.mongoCluster/i && viewItem =~ /(mongocluster|mongodb)/i"
},
{
"command": "command.mongoClusters.createCollection",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem == mongoClusters.item.database"
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.database/i && viewItem =~ /(mongocluster|mongodb)/i"
},
{
"command": "command.mongoClusters.createDatabase",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /mongoClusters.item.mongoCluster/i",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.mongoCluster/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "1@1"
},
{
"command": "command.mongoClusters.importDocuments",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem == mongoClusters.item.collection",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.collection/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "1@1"
},
{
"command": "command.mongoClusters.exportDocuments",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem == mongoClusters.item.collection",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.collection/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "1@2"
},
{
"command": "command.mongoClusters.createDocument",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.collection/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "1@1"
},
{
"command": "command.mongoClusters.launchShell",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /mongoClusters.item.(mongoCluster|database|collection)/i",
"when": "vscodeDatabases.mongoClustersSupportEnabled && viewItem =~ /treeitem.(mongoCluster|database|collection)/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "2@1"
},
{
"command": "azureDatabases.refresh",
"when" : "viewItem =~ /treeitem.mongocluster/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "4@1"
},
{
"command": "azureDatabases.refresh",
"when" : "viewItem =~ /treeitem.collection/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "4@1"
},
{
"command": "azureDatabases.refresh",
"when" : "viewItem =~ /treeitem.database/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "4@1"
},
{
"command": "azureDatabases.refresh",
"when" : "viewItem =~ /treeitem.indexes/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "4@1"
},
{
"command": "azureDatabases.refresh",
"when" : "viewItem =~ /treeitem.index/i && viewItem =~ /(mongocluster|mongodb)/i",
"group": "4@1"
}
],
"explorer/context": [
Expand Down
Loading
Loading