From 1d952a4ea2e57ee0ce95dde945afc8162ebd3370 Mon Sep 17 00:00:00 2001
From: jawelton74 <103591340+jawelton74@users.noreply.github.com>
Date: Tue, 21 Jan 2025 10:53:47 -0800
Subject: [PATCH] Remove throughput survey text and link from Throughput tab.
(#2031)
---
.../ThroughputInputAutoPilotV3Component.tsx | 27 +------------------
1 file changed, 1 insertion(+), 26 deletions(-)
diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx
index 664ae01c7..391789938 100644
--- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx
+++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx
@@ -17,14 +17,13 @@ import {
} from "@fluentui/react";
import React from "react";
import * as DataModels from "../../../../../Contracts/DataModels";
-import { SubscriptionType } from "../../../../../Contracts/SubscriptionType";
import * as SharedConstants from "../../../../../Shared/Constants";
import { Action, ActionModifiers } from "../../../../../Shared/Telemetry/TelemetryConstants";
import * as TelemetryProcessor from "../../../../../Shared/Telemetry/TelemetryProcessor";
import { userContext } from "../../../../../UserContext";
import * as AutoPilotUtils from "../../../../../Utils/AutoPilotUtils";
import { autoPilotThroughput1K } from "../../../../../Utils/AutoPilotUtils";
-import { calculateEstimateNumber, usageInGB } from "../../../../../Utils/PricingUtils";
+import { calculateEstimateNumber } from "../../../../../Utils/PricingUtils";
import { Int32 } from "../../../../Panes/Tables/Validators/EntityPropertyValidationCommon";
import {
PriceBreakdown,
@@ -366,29 +365,6 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
});
};
- private minRUperGBSurvey = (): JSX.Element => {
- const href = `https://ncv.microsoft.com/vRBTO37jmO?ctx={"AzureSubscriptionId":"${userContext.subscriptionId}","CosmosDBAccountName":"${userContext.databaseAccount?.name}"}`;
- const oneTBinKB = 1000000000;
- const minRUperGB = 10;
- const featureFlagEnabled = userContext.features.showMinRUSurvey;
- const collectionIsEligible =
- userContext.subscriptionType !== SubscriptionType.Internal &&
- this.props.usageSizeInKB > oneTBinKB &&
- this.props.minimum >= usageInGB(this.props.usageSizeInKB) * minRUperGB;
- if (featureFlagEnabled || collectionIsEligible) {
- return (
-
- Need to scale below {this.props.minimum} RU/s? Reach out by filling{" "}
-
- this questionnaire
-
- .
-
- );
- }
- return undefined;
- };
-
private renderThroughputModeChoices = (): JSX.Element => {
const labelId = "settingsV2RadioButtonLabelId";
return (
@@ -661,7 +637,6 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
)}
- {this.minRUperGBSurvey()}
{this.props.spendAckVisible && (