mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-06-05 15:12:04 +01:00
Remove extra error logging in SettingsComponent (#296)
Remove extra error logging for `updateOfferThroughputBeyondLimit` in SettingsComponent.
This commit is contained in:
parent
734df3dd18
commit
703ceacd3f
@ -392,33 +392,18 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
|
|||||||
throughput: newThroughput,
|
throughput: newThroughput,
|
||||||
offerIsRUPerMinuteThroughputEnabled: false
|
offerIsRUPerMinuteThroughputEnabled: false
|
||||||
};
|
};
|
||||||
try {
|
|
||||||
await updateOfferThroughputBeyondLimit(requestPayload);
|
await updateOfferThroughputBeyondLimit(requestPayload);
|
||||||
this.collection.offer().content.offerThroughput = originalThroughputValue;
|
this.collection.offer().content.offerThroughput = originalThroughputValue;
|
||||||
this.setState({
|
this.setState({
|
||||||
|
isScaleSaveable: false,
|
||||||
|
isScaleDiscardable: false,
|
||||||
throughput: originalThroughputValue,
|
throughput: originalThroughputValue,
|
||||||
throughputBaseline: originalThroughputValue,
|
throughputBaseline: originalThroughputValue,
|
||||||
initialNotification: {
|
initialNotification: {
|
||||||
description: `Throughput update for ${newThroughput} ${throughputUnit}`
|
description: `Throughput update for ${newThroughput} ${throughputUnit}`
|
||||||
} as DataModels.Notification
|
} as DataModels.Notification
|
||||||
});
|
});
|
||||||
this.setState({ isScaleSaveable: false, isScaleDiscardable: false });
|
|
||||||
} catch (error) {
|
|
||||||
traceFailure(
|
|
||||||
Action.SettingsV2Updated,
|
|
||||||
{
|
|
||||||
databaseAccountName: this.container.databaseAccount().name,
|
|
||||||
databaseName: this.collection?.databaseId,
|
|
||||||
collectionName: this.collection?.id(),
|
|
||||||
defaultExperience: this.container.defaultExperience(),
|
|
||||||
dataExplorerArea: Constants.Areas.Tab,
|
|
||||||
tabTitle: this.props.settingsTab.tabTitle(),
|
|
||||||
error: error
|
|
||||||
},
|
|
||||||
startKey
|
|
||||||
);
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
const updateOfferParams: DataModels.UpdateOfferParams = {
|
const updateOfferParams: DataModels.UpdateOfferParams = {
|
||||||
databaseId: this.collection.databaseId,
|
databaseId: this.collection.databaseId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user