mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 01:28:26 -05:00
Nasc/per role parameters (#14425)
* Creating separate pages for worker and coordinator parameters * Added new gear, hid coordinator server parameters page * Commented out azdataApi * Added white gear, created abstract class for server parameters page * Chaged gear name, condensed base class more, changed file name * Added colored gears for parameter pages * Edited to describe configuring both coordinator and worker
This commit is contained in:
@@ -28,7 +28,8 @@ export type EngineSettingsModel = {
|
||||
|
||||
export class PostgresModel extends ResourceModel {
|
||||
private _config?: azdataExt.PostgresServerShowResult;
|
||||
public _engineSettings: EngineSettingsModel[] = [];
|
||||
public workerNodesEngineSettings: EngineSettingsModel[] = [];
|
||||
public coordinatorNodeEngineSettings: EngineSettingsModel[] = [];
|
||||
private readonly _azdataApi: azdataExt.IExtension;
|
||||
|
||||
private readonly _onConfigUpdated = new vscode.EventEmitter<azdataExt.PostgresServerShowResult>();
|
||||
@@ -137,6 +138,7 @@ export class PostgresModel extends ResourceModel {
|
||||
this._activeConnectionId = result.connectionId;
|
||||
}
|
||||
|
||||
// TODO Need to make separate calls for worker nodes and coordinator node
|
||||
const provider = azdata.dataprotocol.getProvider<azdata.QueryProvider>(this._connectionProfile!.providerName, azdata.DataProviderType.QueryProvider);
|
||||
const ownerUri = await azdata.connection.getUriForConnection(this._activeConnectionId);
|
||||
|
||||
@@ -150,7 +152,7 @@ export class PostgresModel extends ResourceModel {
|
||||
'shared_preload_libraries', 'synchronous_commit', 'ssl', 'unix_socket_permissions', 'wal_level'
|
||||
];
|
||||
|
||||
this._engineSettings = [];
|
||||
this.workerNodesEngineSettings = [];
|
||||
|
||||
engineSettings.rows.forEach(row => {
|
||||
let rowValues = row.map(c => c.displayValue);
|
||||
@@ -166,12 +168,12 @@ export class PostgresModel extends ResourceModel {
|
||||
type: rowValues.shift()
|
||||
};
|
||||
|
||||
this._engineSettings.push(result);
|
||||
this.workerNodesEngineSettings.push(result);
|
||||
}
|
||||
});
|
||||
|
||||
this.engineSettingsLastUpdated = new Date();
|
||||
this._onEngineSettingsUpdated.fire(this._engineSettings);
|
||||
this._onEngineSettingsUpdated.fire(this.workerNodesEngineSettings);
|
||||
}
|
||||
|
||||
protected createConnectionProfile(): azdata.IConnectionProfile {
|
||||
|
||||
Reference in New Issue
Block a user