From 689c7ab27e83dd710affc0c198998161dd7cdc52 Mon Sep 17 00:00:00 2001 From: nasc17 <69922333+nasc17@users.noreply.github.com> Date: Mon, 9 Nov 2020 17:15:17 -0800 Subject: [PATCH] Removed web app connection string from postgres and miaa. Remove '!' (#13323) --- .../ui/dashboards/miaa/miaaConnectionStringsPage.ts | 3 +-- .../postgres/postgresComputeAndStoragePage.ts | 10 +++++----- .../postgres/postgresConnectionStringsPage.ts | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/extensions/arc/src/ui/dashboards/miaa/miaaConnectionStringsPage.ts b/extensions/arc/src/ui/dashboards/miaa/miaaConnectionStringsPage.ts index c3437e743d..c52ecd5b1b 100644 --- a/extensions/arc/src/ui/dashboards/miaa/miaaConnectionStringsPage.ts +++ b/extensions/arc/src/ui/dashboards/miaa/miaaConnectionStringsPage.ts @@ -91,8 +91,7 @@ export class MiaaConnectionStringsPage extends DashboardPage { $serverName = "${externalEndpoint.ip},${externalEndpoint.port}"; $conn = sqlsrv_connect($serverName, $connectionInfo);`), new InputKeyValue(this.modelView.modelBuilder, 'Python', `dbname='master' user='${username}' host='${externalEndpoint.ip}' password='{your_password_here}' port='${externalEndpoint.port}' sslmode='true'`), - new InputKeyValue(this.modelView.modelBuilder, 'Ruby', `host=${externalEndpoint.ip}; user=${username} password={your_password_here} port=${externalEndpoint.port} sslmode=require`), - new InputKeyValue(this.modelView.modelBuilder, 'Web App', `Database=master; Data Source=${externalEndpoint.ip}; User Id=${username}; Password={your_password_here}`) + new InputKeyValue(this.modelView.modelBuilder, 'Ruby', `host=${externalEndpoint.ip}; user=${username} password={your_password_here} port=${externalEndpoint.port} sslmode=require`) ]; } diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts index 579ee88508..bbd68ed176 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts @@ -202,7 +202,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { }).component(); this.disposables.push( - this.workerBox!.onTextChanged(() => { + this.workerBox.onTextChanged(() => { if (!(this.handleOnTextChanged(this.workerBox!))) { this.saveArgs.workers = undefined; } else { @@ -219,7 +219,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { }).component(); this.disposables.push( - this.coresLimitBox!.onTextChanged(() => { + this.coresLimitBox.onTextChanged(() => { if (!(this.handleOnTextChanged(this.coresLimitBox!))) { this.saveArgs.coresLimit = undefined; } else { @@ -236,7 +236,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { }).component(); this.disposables.push( - this.coresRequestBox!.onTextChanged(() => { + this.coresRequestBox.onTextChanged(() => { if (!(this.handleOnTextChanged(this.coresRequestBox!))) { this.saveArgs.coresRequest = undefined; } else { @@ -253,7 +253,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { }).component(); this.disposables.push( - this.memoryLimitBox!.onTextChanged(() => { + this.memoryLimitBox.onTextChanged(() => { if (!(this.handleOnTextChanged(this.memoryLimitBox!))) { this.saveArgs.memoryLimit = undefined; } else { @@ -270,7 +270,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { }).component(); this.disposables.push( - this.memoryRequestBox!.onTextChanged(() => { + this.memoryRequestBox.onTextChanged(() => { if (!(this.handleOnTextChanged(this.memoryRequestBox!))) { this.saveArgs.memoryRequest = undefined; } else { diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresConnectionStringsPage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresConnectionStringsPage.ts index d287ab42e1..88b8fd0b43 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresConnectionStringsPage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresConnectionStringsPage.ts @@ -82,8 +82,7 @@ export class PostgresConnectionStringsPage extends DashboardPage { new InputKeyValue(this.modelView.modelBuilder, 'PHP', `host=${endpoint.ip} port=${endpoint.port} dbname=postgres user=postgres password={your_password_here} sslmode=require`), new InputKeyValue(this.modelView.modelBuilder, 'psql', `psql "host=${endpoint.ip} port=${endpoint.port} dbname=postgres user=postgres password={your_password_here} sslmode=require"`), new InputKeyValue(this.modelView.modelBuilder, 'Python', `dbname='postgres' user='postgres' host='${endpoint.ip}' password='{your_password_here}' port='${endpoint.port}' sslmode='true'`), - new InputKeyValue(this.modelView.modelBuilder, 'Ruby', `host=${endpoint.ip}; dbname=postgres user=postgres password={your_password_here} port=${endpoint.port} sslmode=require`), - new InputKeyValue(this.modelView.modelBuilder, 'Web App', `Database=postgres; Data Source=${endpoint.ip}; User Id=postgres; Password={your_password_here}`) + new InputKeyValue(this.modelView.modelBuilder, 'Ruby', `host=${endpoint.ip}; dbname=postgres user=postgres password={your_password_here} port=${endpoint.port} sslmode=require`) ]; }