From 05d02f08fa526c42b879248e0c05f14ec2688351 Mon Sep 17 00:00:00 2001 From: Dmitry Shilov Date: Tue, 3 Jun 2025 08:47:00 +0200 Subject: [PATCH] feat: Integrate Fabric Native support for throughput management (#2166) --- .../Controls/ThroughputInput/ThroughputInput.tsx | 4 +++- .../AddCollectionPanel/AddCollectionPanel.tsx | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index af0219be1..a98803593 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -11,6 +11,7 @@ import * as AutoPilotUtils from "../../../Utils/AutoPilotUtils"; import * as PricingUtils from "../../../Utils/PricingUtils"; import { CostEstimateText } from "./CostEstimateText/CostEstimateText"; import "./ThroughputInput.less"; +import { isFabricNative } from "../../../Platform/Fabric/FabricUtil"; export interface ThroughputInputProps { isDatabase: boolean; @@ -43,7 +44,8 @@ export const ThroughputInput: FunctionComponent = ({ if ( isFreeTier || isQuickstart || - [Constants.WorkloadType.Learning, Constants.WorkloadType.DevelopmentTesting].includes(workloadType) + [Constants.WorkloadType.Learning, Constants.WorkloadType.DevelopmentTesting].includes(workloadType) || + isFabricNative() ) { defaultThroughput = AutoPilotUtils.autoPilotThroughput1K; } else if (workloadType === Constants.WorkloadType.Production) { diff --git a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx index cbbab0192..424df04dc 100644 --- a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx @@ -60,6 +60,7 @@ import { useDatabases } from "../../useDatabases"; import { PanelFooterComponent } from "../PanelFooterComponent"; import { PanelInfoErrorComponent } from "../PanelInfoErrorComponent"; import { PanelLoadingScreen } from "../PanelLoadingScreen"; +import * as AutoPilotUtils from "../../../Utils/AutoPilotUtils"; export interface AddCollectionPanelProps { explorer: Explorer; @@ -867,7 +868,7 @@ export class AddCollectionPanel extends React.Component )} - {this.showFullTextSearch && ( + {this.shouldShowFullTextSearchParameters() && (