mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
Arc Postgres - Rename shards to workers
Co-authored-by: Brian Bergeron <brberger@microsoft.com>
This commit is contained in:
@@ -387,17 +387,14 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
}
|
||||
|
||||
private editWorkerNodeCount() {
|
||||
let currentShards = this._postgresModel.config?.spec.scale.shards;
|
||||
|
||||
if (!currentShards) {
|
||||
this.workerBox!.min = 0;
|
||||
this.workerBox!.placeHolder = '';
|
||||
} else {
|
||||
this.workerBox!.min = currentShards;
|
||||
this.workerBox!.placeHolder = currentShards!.toString();
|
||||
}
|
||||
// scale.shards was renamed to scale.workers. Check both for backwards compatibility.
|
||||
let scale = this._postgresModel.config?.spec.scale;
|
||||
let currentWorkers = scale?.workers ?? scale?.shards ?? 0;
|
||||
|
||||
this.workerBox!.min = currentWorkers;
|
||||
this.workerBox!.placeHolder = currentWorkers.toString();
|
||||
this.workerBox!.value = '';
|
||||
|
||||
this.saveArgs.workers = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user