diff --git a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx index 12b5a8c47..d4d18f724 100644 --- a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx +++ b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx @@ -483,7 +483,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
- {shouldShowQueryPageOptions && ( + {shouldShowQueryPageOptions && configContext.platform !== Platform.Emulator && (
Page Options
@@ -534,7 +534,8 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({ )} {userContext.apiType === "SQL" && userContext.authType === AuthType.AAD && - configContext.platform !== Platform.Fabric && ( + configContext.platform !== Platform.Fabric && + configContext.platform !== Platform.Emulator && (
Enable Entra ID RBAC
@@ -565,201 +566,207 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - {userContext.apiType === "SQL" && ( - <> - - -
Query Timeout
-
- -
-
- When a query reaches a specified time limit, a popup with an option to cancel the query will show - unless automatic cancellation has been enabled. -
- + {userContext.apiType === "SQL" && configContext.platform !== Platform.Emulator && ( + + +
Query Timeout
+
+ +
+
+ When a query reaches a specified time limit, a popup with an option to cancel the query will show + unless automatic cancellation has been enabled.
- {queryTimeoutEnabled && ( -
- - -
- )} - - - - - -
RU Limit
-
- + +
+ {queryTimeoutEnabled && (
-
- If a query exceeds a configured RU limit, the query will be aborted. -
+
- {ruThresholdEnabled && ( -
- -
- )} -
-
+ )} + + + )} - - -
Default Query Results View
-
- + {configContext.platform !== Platform.Emulator && ( + + +
RU Limit
+
+ +
+
+ If a query exceeds a configured RU limit, the query will be aborted. +
+ +
+ {ruThresholdEnabled && (
-
- Select the default view to use when displaying query results. -
-
-
-
- + )} +
+
)} - - -
Retry Settings
-
- -
-
- Retry policy associated with throttled requests during CosmosDB queries. -
-
- Max retry attempts - - Max number of retries to be performed for a request. Default value 9. - -
- setRetryAttempts(parseInt(newValue) + 1 || retryAttempts)} - onDecrement={(newValue) => setRetryAttempts(parseInt(newValue) - 1 || retryAttempts)} - onValidate={(newValue) => setRetryAttempts(parseInt(newValue) || retryAttempts)} - styles={spinButtonStyles} - /> -
- Fixed retry interval (ms) - - Fixed retry interval in milliseconds to wait between each retry ignoring the retryAfter returned as - part of the response. Default value is 0 milliseconds. - + {configContext.platform !== Platform.Emulator && ( + + +
Default Query Results View
+
+ +
+
+ Select the default view to use when displaying query results. +
+
- setRetryInterval(parseInt(newValue) + 1000 || retryInterval)} - onDecrement={(newValue) => setRetryInterval(parseInt(newValue) - 1000 || retryInterval)} - onValidate={(newValue) => setRetryInterval(parseInt(newValue) || retryInterval)} - styles={spinButtonStyles} - /> -
- Max wait time (s) - - Max wait time in seconds to wait for a request while the retries are happening. Default value 30 - seconds. - + + + )} + + {configContext.platform !== Platform.Emulator && ( + + +
Retry Settings
+
+ +
+
+ Retry policy associated with throttled requests during CosmosDB queries. +
+
+ Max retry attempts + + Max number of retries to be performed for a request. Default value 9. + +
+ setRetryAttempts(parseInt(newValue) + 1 || retryAttempts)} + onDecrement={(newValue) => setRetryAttempts(parseInt(newValue) - 1 || retryAttempts)} + onValidate={(newValue) => setRetryAttempts(parseInt(newValue) || retryAttempts)} + styles={spinButtonStyles} + /> +
+ Fixed retry interval (ms) + + Fixed retry interval in milliseconds to wait between each retry ignoring the retryAfter returned + as part of the response. Default value is 0 milliseconds. + +
+ setRetryInterval(parseInt(newValue) + 1000 || retryInterval)} + onDecrement={(newValue) => setRetryInterval(parseInt(newValue) - 1000 || retryInterval)} + onValidate={(newValue) => setRetryInterval(parseInt(newValue) || retryInterval)} + styles={spinButtonStyles} + /> +
+ Max wait time (s) + + Max wait time in seconds to wait for a request while the retries are happening. Default value 30 + seconds. + +
+ setMaxWaitTimeInSeconds(parseInt(newValue) + 1 || MaxWaitTimeInSeconds)} + onDecrement={(newValue) => setMaxWaitTimeInSeconds(parseInt(newValue) - 1 || MaxWaitTimeInSeconds)} + onValidate={(newValue) => setMaxWaitTimeInSeconds(parseInt(newValue) || MaxWaitTimeInSeconds)} + styles={spinButtonStyles} + />
- setMaxWaitTimeInSeconds(parseInt(newValue) + 1 || MaxWaitTimeInSeconds)} - onDecrement={(newValue) => setMaxWaitTimeInSeconds(parseInt(newValue) - 1 || MaxWaitTimeInSeconds)} - onValidate={(newValue) => setMaxWaitTimeInSeconds(parseInt(newValue) || MaxWaitTimeInSeconds)} - styles={spinButtonStyles} - /> -
-
-
- - - -
Enable container pagination
-
- -
-
- Load 50 containers at a time. Currently, containers are not pulled in alphanumeric order. + + + )} + + {configContext.platform !== Platform.Emulator && ( + + +
Enable container pagination
+
+ +
+
+ Load 50 containers at a time. Currently, containers are not pulled in alphanumeric order. +
+ setContainerPaginationEnabled(!containerPaginationEnabled)} + label="Enable container pagination" + />
- setContainerPaginationEnabled(!containerPaginationEnabled)} - label="Enable container pagination" - /> -
- - - - {shouldShowCrossPartitionOption && ( + + + )} + + {shouldShowCrossPartitionOption && configContext.platform !== Platform.Emulator && (
Enable cross-partition query
@@ -785,7 +792,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - {shouldShowParallelismOption && ( + {shouldShowParallelismOption && configContext.platform !== Platform.Emulator && (
Max degree of parallelism
@@ -819,7 +826,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - {shouldShowPriorityLevelOption && ( + {shouldShowPriorityLevelOption && configContext.platform !== Platform.Emulator && (
Priority Level
@@ -843,7 +850,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - {shouldShowGraphAutoVizOption && ( + {shouldShowGraphAutoVizOption && configContext.platform !== Platform.Emulator && (
Display Gremlin query results as: 
@@ -865,7 +872,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - {shouldShowCopilotSampleDBOption && ( + {shouldShowCopilotSampleDBOption && configContext.platform !== Platform.Emulator && (
Enable sample database