Sqlx bug fixes (#816)

* fixed bugs in sqlx

* fixed bug with discard
This commit is contained in:
Srinath Narayanan 2021-05-22 01:49:07 +05:30 committed by GitHub
parent 9787a5ce7c
commit 3b6b987149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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 });
}; };

View File

@ -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;
}; };