parent
9787a5ce7c
commit
3b6b987149
|
@ -166,7 +166,7 @@ export class SelfServeComponent extends React.Component<SelfServeComponentProps,
|
||||||
const { baselineValues } = this.state;
|
const { baselineValues } = this.state;
|
||||||
for (const key of currentValues.keys()) {
|
for (const key of currentValues.keys()) {
|
||||||
const baselineValue = baselineValues.get(key);
|
const baselineValue = baselineValues.get(key);
|
||||||
currentValues = currentValues.set(key, { ...baselineValue });
|
currentValues = currentValues.set(key, baselineValue ? { ...baselineValue } : baselineValue);
|
||||||
}
|
}
|
||||||
this.setState({ currentValues });
|
this.setState({ currentValues });
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,6 +50,7 @@ export const updateDedicatedGatewayResource = async (sku: string, instances: num
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const failureTelemetry = { ...body, e, selfServeClassName: SqlX.name };
|
const failureTelemetry = { ...body, e, selfServeClassName: SqlX.name };
|
||||||
selfServeTraceFailure(failureTelemetry, updateTimeStamp);
|
selfServeTraceFailure(failureTelemetry, updateTimeStamp);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
return armRequestResult?.operationStatusUrl;
|
return armRequestResult?.operationStatusUrl;
|
||||||
};
|
};
|
||||||
|
@ -70,6 +71,7 @@ export const deleteDedicatedGatewayResource = async (): Promise<string> => {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const failureTelemetry = { e, selfServeClassName: SqlX.name };
|
const failureTelemetry = { e, selfServeClassName: SqlX.name };
|
||||||
selfServeTraceFailure(failureTelemetry, deleteTimeStamp);
|
selfServeTraceFailure(failureTelemetry, deleteTimeStamp);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
return armRequestResult?.operationStatusUrl;
|
return armRequestResult?.operationStatusUrl;
|
||||||
};
|
};
|
||||||
|
@ -90,6 +92,7 @@ export const getDedicatedGatewayResource = async (): Promise<SqlxServiceResource
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const failureTelemetry = { e, selfServeClassName: SqlX.name };
|
const failureTelemetry = { e, selfServeClassName: SqlX.name };
|
||||||
selfServeTraceFailure(failureTelemetry, getResourceTimeStamp);
|
selfServeTraceFailure(failureTelemetry, getResourceTimeStamp);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
return armRequestResult?.result;
|
return armRequestResult?.result;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue