mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 04:41:48 +00:00
Compare commits
3 Commits
cloudshell
...
users/sind
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b432bd38eb | ||
|
|
ecb39dd99f | ||
|
|
51782f1157 |
@@ -1426,9 +1426,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
TelemetryProcessor.traceSuccess(Action.CreateCollection, telemetryData, startKey);
|
TelemetryProcessor.traceSuccess(Action.CreateCollection, telemetryData, startKey);
|
||||||
useSidePanel.getState().closeSidePanel();
|
useSidePanel.getState().closeSidePanel();
|
||||||
// open NPS Survey Dialog once the collection is created
|
// open NPS Survey Dialog once the collection is created
|
||||||
if (userContext.features.enableNPSSurvey) {
|
this.props.explorer.openNPSSurveyDialog();
|
||||||
this.props.explorer.openNPSSurveyDialog();
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage: string = getErrorMessage(error);
|
const errorMessage: string = getErrorMessage(error);
|
||||||
this.setState({ isExecuting: false, errorMessage, showErrorDetails: true });
|
this.setState({ isExecuting: false, errorMessage, showErrorDetails: true });
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ export type Features = {
|
|||||||
readonly loadLegacyMongoShellFromBE: boolean;
|
readonly loadLegacyMongoShellFromBE: boolean;
|
||||||
readonly enableCopilot: boolean;
|
readonly enableCopilot: boolean;
|
||||||
readonly enablePriorityBasedThrottling: boolean;
|
readonly enablePriorityBasedThrottling: boolean;
|
||||||
readonly enableNPSSurvey: boolean;
|
|
||||||
readonly copilotVersion?: string;
|
readonly copilotVersion?: string;
|
||||||
readonly enableCopilotPhoenixGateaway: boolean;
|
readonly enableCopilotPhoenixGateaway: boolean;
|
||||||
readonly enableCopilotFullSchema: boolean;
|
readonly enableCopilotFullSchema: boolean;
|
||||||
@@ -109,7 +108,6 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
|
|||||||
enableLegacyMongoShellV2Debug: "true" === get("enablelegacymongoshellv2debug"),
|
enableLegacyMongoShellV2Debug: "true" === get("enablelegacymongoshellv2debug"),
|
||||||
loadLegacyMongoShellFromBE: "true" === get("loadlegacymongoshellfrombe"),
|
loadLegacyMongoShellFromBE: "true" === get("loadlegacymongoshellfrombe"),
|
||||||
enablePriorityBasedThrottling: "true" === get("enableprioritybasedthrottling"),
|
enablePriorityBasedThrottling: "true" === get("enableprioritybasedthrottling"),
|
||||||
enableNPSSurvey: "true" === get("enablenpssurvey"),
|
|
||||||
enableCopilot: "true" === get("enablecopilot"),
|
enableCopilot: "true" === get("enablecopilot"),
|
||||||
copilotVersion: get("copilotversion") ?? "v1.0",
|
copilotVersion: get("copilotversion") ?? "v1.0",
|
||||||
enableCopilotPhoenixGateaway: "true" === get("enablecopilotphoenixgateaway"),
|
enableCopilotPhoenixGateaway: "true" === get("enablecopilotphoenixgateaway"),
|
||||||
|
|||||||
@@ -294,6 +294,9 @@ async function configurePortal(): Promise<Explorer> {
|
|||||||
updateContextsFromPortalMessage(inputs);
|
updateContextsFromPortalMessage(inputs);
|
||||||
explorer = new Explorer();
|
explorer = new Explorer();
|
||||||
resolve(explorer);
|
resolve(explorer);
|
||||||
|
if (userContext.apiType === "Postgres") {
|
||||||
|
explorer.openNPSSurveyDialog();
|
||||||
|
}
|
||||||
if (openAction) {
|
if (openAction) {
|
||||||
handleOpenAction(openAction, useDatabases.getState().databases, explorer);
|
handleOpenAction(openAction, useDatabases.getState().databases, explorer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user