diff --git a/src/Explorer/Controls/Settings/SettingsComponent.tsx b/src/Explorer/Controls/Settings/SettingsComponent.tsx index 4aca3ce6b..558beceec 100644 --- a/src/Explorer/Controls/Settings/SettingsComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsComponent.tsx @@ -179,7 +179,8 @@ export class SettingsComponent extends React.Component, diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx index f3f964060..138b3137d 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx @@ -27,7 +27,6 @@ export interface ContainerPolicyComponentProps { isFullTextSearchEnabled: boolean; shouldDiscardContainerPolicies: boolean; resetShouldDiscardContainerPolicyChange: () => void; - isGlobalSecondaryIndex?: boolean; } export const ContainerPolicyComponent: React.FC = ({ diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.test.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.test.tsx index e54f1459c..b3f36cbc6 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.test.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.test.tsx @@ -9,7 +9,7 @@ describe("ScaleComponent", () => { collection: collection, database: undefined, isFixedContainer: false, - isGlobalSecondaryIndex: false, + isGlobalSecondaryIndexTarget: false, onThroughputChange: () => { return; }, diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.tsx index 1a0aed184..fefa37dbb 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ScaleComponent.tsx @@ -23,7 +23,7 @@ export interface ScaleComponentProps { collection: ViewModels.Collection; database: ViewModels.Database; isFixedContainer: boolean; - isGlobalSecondaryIndex: boolean; + isGlobalSecondaryIndexTarget: boolean; onThroughputChange: (newThroughput: number) => void; throughput: number; throughputBaseline: number; @@ -147,7 +147,7 @@ export class ScaleComponent extends React.Component { throughputError={this.props.throughputError} instantMaximumThroughput={this.offer?.instantMaximumThroughput} softAllowedMaximumThroughput={this.offer?.softAllowedMaximumThroughput} - isGlobalSecondaryIndex={this.props.isGlobalSecondaryIndex} + isGlobalSecondaryIndexTarget={this.props.isGlobalSecondaryIndexTarget} /> ); diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.test.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.test.tsx index a02d907b3..ced333abb 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.test.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.test.tsx @@ -44,7 +44,7 @@ describe("ThroughputInputAutoPilotV3Component", () => { }, instantMaximumThroughput: 5000, softAllowedMaximumThroughput: 1000000, - isGlobalSecondaryIndex: false, + isGlobalSecondaryIndexTarget: false, }; it("throughput input visible", () => { diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx index 816c05299..31cfa48e3 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx @@ -81,7 +81,7 @@ export interface ThroughputInputAutoPilotV3Props { throughputError?: string; instantMaximumThroughput: number; softAllowedMaximumThroughput: number; - isGlobalSecondaryIndex: boolean; + isGlobalSecondaryIndexTarget: boolean; } interface ThroughputInputAutoPilotV3State { @@ -427,7 +427,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component< toolTipElement={getToolTipContainer(this.props.infoBubbleText)} /> - {!this.props.isGlobalSecondaryIndex && ( + {!this.props.isGlobalSecondaryIndexTarget && ( <> {this.overrideWithProvisionedThroughputSettings() && ( void; setIsAutoscale: (isAutoscale: boolean) => void; setIsThroughputCapExceeded: (isThroughputCapExceeded: boolean) => void; @@ -32,7 +32,7 @@ export const ThroughputInput: FunctionComponent = ({ isFreeTier, showFreeTierExceedThroughputTooltip, isQuickstart, - isGlobalSecondaryIndex, + isGlobalSecondaryIndexTarget, setThroughputValue, setIsAutoscale, setIsThroughputCapExceeded, @@ -202,7 +202,7 @@ export const ThroughputInput: FunctionComponent = ({ {PricingUtils.getRuToolTipText()} - {!isGlobalSecondaryIndex && ( + {!isGlobalSecondaryIndexTarget && (
void; - isGlobalSecondaryIndex?: boolean; + isGlobalSecondaryIndexTarget?: boolean; } export interface VectorEmbeddingPolicyData { @@ -95,7 +95,7 @@ export const VectorEmbeddingPoliciesComponent: FunctionComponent { const isExistingPolicy = (policy: VectorEmbeddingPolicyData): boolean => { if (!vectorEmbeddingsBaseline || vectorEmbeddingsBaseline.length === 0) { @@ -327,7 +327,7 @@ export const VectorEmbeddingPoliciesComponent: FunctionComponent { - const containerName = isGlobalSecondaryIndex + const containerName = isGlobalSecondaryIndexTarget ? t(Keys.controls.vectorEmbeddingPolicies.quantizationByteSizeTooltipGlobalSecondaryIndexName) : t(Keys.controls.vectorEmbeddingPolicies.quantizationByteSizeTooltipContainerName); return t(Keys.controls.vectorEmbeddingPolicies.quantizationByteSizeTooltip, { containerName }); diff --git a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel.tsx b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel.tsx index f353f4f6a..d66f56ba0 100644 --- a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel.tsx +++ b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/AddGlobalSecondaryIndexPanel.tsx @@ -88,12 +88,12 @@ export const AddGlobalSecondaryIndexPanel = (props: AddGlobalSecondaryIndexPanel }); database.collections().forEach((collection: Collection) => { - const isGlobalSecondaryIndex: boolean = !!collection.materializedViewDefinition(); + const isGlobalSecondaryIndexTarget: boolean = !!collection.materializedViewDefinition(); sourceContainerOptions.push({ key: collection.rid, text: collection.id(), - disabled: isGlobalSecondaryIndex, - ...(isGlobalSecondaryIndex && { + disabled: isGlobalSecondaryIndexTarget, + ...(isGlobalSecondaryIndexTarget && { title: "This is a global secondary index.", }), data: collection, @@ -382,7 +382,7 @@ export const AddGlobalSecondaryIndexPanel = (props: AddGlobalSecondaryIndexPanel setVectorIndexingPolicy, vectorPolicyValidated, setVectorPolicyValidated, - isGlobalSecondaryIndex: true, + isGlobalSecondaryIndexTarget: true, }} /> )} diff --git a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/ThroughputComponent.tsx b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/ThroughputComponent.tsx index d4f9934bc..9cb698954 100644 --- a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/ThroughputComponent.tsx +++ b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/ThroughputComponent.tsx @@ -50,7 +50,7 @@ export const ThroughputComponent = (props: ThroughputComponentProps): JSX.Elemen isSharded={true} isFreeTier={isFreeTierAccount()} isQuickstart={false} - isGlobalSecondaryIndex={true} + isGlobalSecondaryIndexTarget={true} setThroughputValue={(throughput: number) => { globalSecondaryIndexThroughputOnChange(throughput); }} diff --git a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/VectorSearchComponent.tsx b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/VectorSearchComponent.tsx index 7e35f211e..e3021c034 100644 --- a/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/VectorSearchComponent.tsx +++ b/src/Explorer/Panes/AddGlobalSecondaryIndexPanel/Components/VectorSearchComponent.tsx @@ -14,7 +14,7 @@ export interface VectorSearchComponentProps { vectorIndexingPolicy: VectorIndex[]; setVectorIndexingPolicy: React.Dispatch>; setVectorPolicyValidated: React.Dispatch>; - isGlobalSecondaryIndex?: boolean; + isGlobalSecondaryIndexTarget?: boolean; } export const VectorSearchComponent = (props: VectorSearchComponentProps): JSX.Element => { @@ -24,7 +24,7 @@ export const VectorSearchComponent = (props: VectorSearchComponentProps): JSX.El vectorIndexingPolicy, setVectorIndexingPolicy, setVectorPolicyValidated, - isGlobalSecondaryIndex, + isGlobalSecondaryIndexTarget, } = props; return ( @@ -52,7 +52,7 @@ export const VectorSearchComponent = (props: VectorSearchComponentProps): JSX.El setVectorIndexingPolicy(vectorIndexingPolicy); setVectorPolicyValidated(vectorPolicyValidated); }} - isGlobalSecondaryIndex={isGlobalSecondaryIndex} + isGlobalSecondaryIndexTarget={isGlobalSecondaryIndexTarget} />