mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-09-26 04:54:45 +01:00
For connection-string based authentication, the request would be made… (#1644)
* For connection-string based authentication, the request would be made with low priority request header and for AAD based authentication, users can select the priority-request option from the settings panel * removed unused imports * prettier checks --------- Co-authored-by: Faiz Chachiya <[email protected]>
This commit is contained in:
co-authored by
Faiz Chachiya
parent
07d242f972
commit
ca861a0d77
@@ -1,6 +1,15 @@
|
||||
import * as Cosmos from "@azure/cosmos";
|
||||
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
||||
import { PriorityLevel } from "../Common/Constants";
|
||||
import { userContext } from "../UserContext";
|
||||
|
||||
export function isFeatureEnabled(): boolean {
|
||||
return (
|
||||
userContext.apiType === "SQL" &&
|
||||
(userContext.databaseAccount?.properties?.enablePriorityBasedExecution ||
|
||||
userContext.features.enablePriorityBasedExecution)
|
||||
);
|
||||
}
|
||||
|
||||
export function isRelevantRequest(requestContext: Cosmos.RequestContext): boolean {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user