Allow users to delete TablesDB database when enableSDKOperations feature flag is set (#1300)

This commit is contained in:
victor-meng
2022-07-06 10:54:49 -07:00
committed by GitHub
parent 0996489897
commit d66e85f431
24 changed files with 80 additions and 33 deletions

View File

@@ -13,7 +13,11 @@ export async function readDatabases(): Promise<DataModels.Database[]> {
let databases: DataModels.Database[];
const clearMessage = logConsoleProgress(`Querying databases`);
try {
if (userContext.authType === AuthType.AAD && !userContext.useSDKOperations && userContext.apiType !== "Tables") {
if (
userContext.authType === AuthType.AAD &&
!userContext.features.enableSDKoperations &&
userContext.apiType !== "Tables"
) {
databases = await readDatabasesWithARM();
} else {
const sdkResponse = await client().databases.readAll().fetchAll();