-
- Welcome to Azure Cosmos DB
+
+ {title}
+
-
Globally distributed, multi-model database service for any scale
+ {subtitle}
{getSplashScreenButtons()}
{useCarousel.getState().showCoachMark && (
=> {
});
};
+export const openRestoreContainerDialog = (): void => {
+ if (isFabricNative()) {
+ sendCachedDataMessage(FabricMessageTypes.RestoreContainer, []);
+ }
+};
+
/**
* Check token validity and schedule a refresh if necessary
* @param tokenTimestamp
diff --git a/src/Platform/Hosted/extractFeatures.ts b/src/Platform/Hosted/extractFeatures.ts
index b5e324116..2eecd5033 100644
--- a/src/Platform/Hosted/extractFeatures.ts
+++ b/src/Platform/Hosted/extractFeatures.ts
@@ -40,6 +40,7 @@ export type Features = {
readonly disableConnectionStringLogin: boolean;
readonly enableContainerCopy: boolean;
readonly enableCloudShell: boolean;
+ readonly enableRestoreContainer: boolean; // only for Fabric
// can be set via both flight and feature flag
autoscaleDefault: boolean;
@@ -111,6 +112,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
enablePriorityBasedExecution: "true" === get("enableprioritybasedexecution"),
disableConnectionStringLogin: "true" === get("disableconnectionstringlogin"),
enableContainerCopy: "true" === get("enablecontainercopy"),
+ enableRestoreContainer: "true" === get("enablerestorecontainer"),
enableCloudShell: true,
};
}
diff --git a/src/Utils/AuthorizationUtils.test.ts b/src/Utils/AuthorizationUtils.test.ts
index 650f2ed17..781edec60 100644
--- a/src/Utils/AuthorizationUtils.test.ts
+++ b/src/Utils/AuthorizationUtils.test.ts
@@ -43,6 +43,7 @@ describe("AuthorizationUtils", () => {
partitionKeyDefault: false,
partitionKeyDefault2: false,
notebooksDownBanner: false,
+ enableRestoreContainer: false,
},
});
};
diff --git a/test/sql/indexAdvisor.spec.ts b/test/sql/indexAdvisor.spec.ts
index 4d9ac6aa2..dc6ee978c 100644
--- a/test/sql/indexAdvisor.spec.ts
+++ b/test/sql/indexAdvisor.spec.ts
@@ -10,7 +10,7 @@ let CONTAINER_ID: string;
// Set up test database and container with data before all tests
test.beforeAll(async () => {
- testContainer = await createTestSQLContainer(true);
+ testContainer = await createTestSQLContainer({ includeTestData: true });
DATABASE_ID = testContainer.database.id;
CONTAINER_ID = testContainer.container.id;
});