add Materialized Views feature flag

This commit is contained in:
Asier Isayas 2025-02-13 17:21:33 -05:00
parent bd592d07af
commit ae3912cbf2
3 changed files with 11 additions and 0 deletions

View File

@ -26,3 +26,11 @@ export function getWorkloadType(): WorkloadType {
}
return workloadType;
}
export function isMaterializedViewsEnabled() {
return (
userContext.features.enableMaterializedViews &&
userContext.apiType === "SQL" &&
userContext.databaseAccount?.properties?.enableMaterializedViews
);
}

View File

@ -32,6 +32,7 @@ export interface DatabaseAccountExtendedProperties {
writeLocations?: DatabaseAccountResponseLocation[];
enableFreeTier?: boolean;
enableAnalyticalStorage?: boolean;
enableMaterializedViews?: boolean;
isVirtualNetworkFilterEnabled?: boolean;
ipRules?: IpRule[];
privateEndpointConnections?: unknown[];

View File

@ -38,6 +38,7 @@ export type Features = {
readonly copilotChatFixedMonacoEditorHeight: boolean;
readonly enablePriorityBasedExecution: boolean;
readonly disableConnectionStringLogin: boolean;
readonly enableMaterializedViews: boolean;
// can be set via both flight and feature flag
autoscaleDefault: boolean;
@ -108,6 +109,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
copilotChatFixedMonacoEditorHeight: "true" === get("copilotchatfixedmonacoeditorheight"),
enablePriorityBasedExecution: "true" === get("enableprioritybasedexecution"),
disableConnectionStringLogin: "true" === get("disableconnectionstringlogin"),
enableMaterializedViews: "true" === get("enablematerializedviews"),
};
}