From f8cfc6c21c15752d9e5e8a38d9f8dfa7a90f8712 Mon Sep 17 00:00:00 2001 From: jawelton74 <103591340+jawelton74@users.noreply.github.com> Date: Thu, 8 Feb 2024 11:49:40 -0800 Subject: [PATCH] Remove references to addCollectionDefaultFlight parameter. (#1741) --- src/Contracts/ViewModels.ts | 1 - src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx | 8 ++------ .../CassandraAddCollectionPane.tsx | 1 - src/Shared/Constants.ts | 1 - src/UserContext.ts | 2 -- src/hooks/useKnockoutExplorer.ts | 2 -- test/testExplorer/TestExplorer.ts | 1 - 7 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Contracts/ViewModels.ts b/src/Contracts/ViewModels.ts index 7521647df..d95d8ce05 100644 --- a/src/Contracts/ViewModels.ts +++ b/src/Contracts/ViewModels.ts @@ -388,7 +388,6 @@ export interface DataExplorerInputsFrame { extensionEndpoint?: string; subscriptionType?: SubscriptionType; quotaId?: string; - addCollectionDefaultFlight?: string; isTryCosmosDBSubscription?: boolean; loadDatabaseAccountTimestamp?: number; sharedThroughputMinimum?: number; diff --git a/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx b/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx index 0ec99c0fa..e9a9dbd9b 100644 --- a/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx +++ b/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx @@ -1,12 +1,11 @@ import { Checkbox, Stack, Text, TextField } from "@fluentui/react"; import React, { FunctionComponent, useEffect, useState } from "react"; import * as Constants from "../../../Common/Constants"; -import { createDatabase } from "../../../Common/dataAccess/createDatabase"; import { getErrorMessage, getErrorStack } from "../../../Common/ErrorHandlingUtils"; import { InfoTooltip } from "../../../Common/Tooltip/InfoTooltip"; +import { createDatabase } from "../../../Common/dataAccess/createDatabase"; import * as DataModels from "../../../Contracts/DataModels"; import { SubscriptionType } from "../../../Contracts/SubscriptionType"; -import { useSidePanel } from "../../../hooks/useSidePanel"; import * as SharedConstants from "../../../Shared/Constants"; import { Action, ActionModifiers } from "../../../Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; @@ -14,6 +13,7 @@ import { userContext } from "../../../UserContext"; import * as AutoPilotUtils from "../../../Utils/AutoPilotUtils"; import { isServerlessAccount } from "../../../Utils/CapabilityUtils"; import { getUpsellMessage } from "../../../Utils/PricingUtils"; +import { useSidePanel } from "../../../hooks/useSidePanel"; import { ThroughputInput } from "../../Controls/ThroughputInput/ThroughputInput"; import Explorer from "../../Explorer"; import { useDatabases } from "../../useDatabases"; @@ -63,9 +63,6 @@ export const AddDatabasePanel: FunctionComponent = ({ }, subscriptionType: SubscriptionType[subscriptionType], subscriptionQuotaId: userContext.quotaId, - defaultsCheck: { - flight: userContext.addCollectionFlight, - }, dataExplorerArea: Constants.Areas.ContextualPane, }; @@ -75,7 +72,6 @@ export const AddDatabasePanel: FunctionComponent = ({ subscriptionQuotaId: userContext.quotaId, defaultsCheck: { throughput, - flight: userContext.addCollectionFlight, }, dataExplorerArea: Constants.Areas.ContextualPane, }; diff --git a/src/Explorer/Panes/CassandraAddCollectionPane/CassandraAddCollectionPane.tsx b/src/Explorer/Panes/CassandraAddCollectionPane/CassandraAddCollectionPane.tsx index 0dd145af9..dbef20b12 100644 --- a/src/Explorer/Panes/CassandraAddCollectionPane/CassandraAddCollectionPane.tsx +++ b/src/Explorer/Panes/CassandraAddCollectionPane/CassandraAddCollectionPane.tsx @@ -59,7 +59,6 @@ export const CassandraAddCollectionPane: FunctionComponent => { extensionEndpoint: "/proxy", subscriptionType: 3, quotaId: "Internal_2014-09-01", - addCollectionDefaultFlight: "2", isTryCosmosDBSubscription: false, masterKey: keys.primaryMasterKey, loadDatabaseAccountTimestamp: 1604663109836,