From 7dbccff41dca0fd3eed29bd358a674d0bcc4de16 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Wed, 1 Feb 2023 22:20:03 +0530 Subject: [PATCH 1/3] fix for defect 1703851&1703931 (#1379) --- .../ThroughputInput/ThroughputInput.tsx | 18 +++++++++++---- .../ThroughputInput.test.tsx.snap | 22 +++++++++++-------- 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index ab4c45c03..c4b3d936c 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -186,6 +186,7 @@ export const ThroughputInput: FunctionComponent = ({ = ({ tabIndex={0} onChange={(e) => handleOnChangeMode(e, "Autoscale")} /> - Autoscale + = ({ tabIndex={0} onChange={(e) => handleOnChangeMode(e, "Manual")} /> - Manual + {isAutoscaleSelected && ( - + Estimate your required RU/s with{" "} - + capacity calculator . diff --git a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap index bfe811a96..587eee9dc 100644 --- a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap +++ b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap @@ -659,35 +659,39 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` aria-required={true} checked={true} className="throughputInputRadioBtn" + id="Autoscale-input" key=".0:$.0" onChange={[Function]} role="radio" tabIndex={0} type="radio" /> - Autoscale - + - Manual - + Estimate your required RU/s with Date: Fri, 3 Feb 2023 10:15:35 -0600 Subject: [PATCH 2/3] remove feature flag and add preview text in the button (#1383) --- src/Explorer/Panes/AddCollectionPanel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index 9a49f3fcd..81c94f980 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -597,15 +597,15 @@ export class AddCollectionPanel extends React.Component ); })} - {userContext.apiType === "SQL" && userContext.features.enableHierarchicalKeys && ( + {userContext.apiType === "SQL" && ( {this.state.subPartitionKeys.length > 0 && ( From 850f1dfb974a8a3669934d96e9d886b7b9daa5f6 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Sat, 4 Feb 2023 01:51:11 +0530 Subject: [PATCH 3/3] rework for defect-1704149 (#1384) --- src/Explorer/Panes/AddCollectionPanel.tsx | 77 ++++++++++++++++--- .../AddCollectionPanel.test.tsx.snap | 6 ++ 2 files changed, 74 insertions(+), 9 deletions(-) diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index 81c94f980..73774ebbb 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -262,7 +262,14 @@ export class AddCollectionPanel extends React.Component - + @@ -338,7 +345,14 @@ export class AddCollectionPanel extends React.Component - + )} @@ -386,7 +400,12 @@ export class AddCollectionPanel extends React.Component - + @@ -469,7 +488,14 @@ export class AddCollectionPanel extends React.Component - + @@ -516,7 +542,12 @@ export class AddCollectionPanel extends React.Component - + @@ -645,7 +676,17 @@ export class AddCollectionPanel extends React.Component - + )} @@ -680,7 +721,14 @@ export class AddCollectionPanel extends React.Component - + @@ -743,7 +791,13 @@ export class AddCollectionPanel extends React.Component - + @@ -820,7 +874,12 @@ export class AddCollectionPanel extends React.Component - + diff --git a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap index 2df43e44b..420e23955 100644 --- a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap @@ -31,6 +31,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = ` directionalHint={4} >