new drop object request (#22387)

* simplify drop object requests

* update sts

* pr comments
This commit is contained in:
Alan Ren
2023-03-21 10:51:55 -07:00
committed by GitHub
parent ffc7f05c10
commit 21f271671d
5 changed files with 40 additions and 86 deletions

View File

@@ -139,16 +139,7 @@ async function handleDeleteObjectCommand(context: azdata.ObjectExplorerContext,
operation: async (operation) => {
try {
const startTime = Date.now();
switch (context.nodeInfo.nodeType) {
case NodeType.Login:
await service.deleteLogin(connectionUri, context.nodeInfo.label);
break;
case NodeType.User:
await service.deleteUser(connectionUri, context.connectionProfile.databaseName, context.nodeInfo.label);
break;
default:
return;
}
await service.drop(connectionUri, context.nodeInfo.metadata.urn);
TelemetryReporter.sendTelemetryEvent(TelemetryActions.DeleteObject, {
objectType: context.nodeInfo.nodeType
}, {