Junierch/db list migration (#20751)

* remove Last Backup colum on assessment db list.

* column cleanup

* using sqlutils

* typo fixed

* Typo fixed

* use providerid from connection
This commit is contained in:
junierch
2022-10-27 15:37:20 -04:00
committed by GitHub
parent cc8afa97d0
commit facdb2b0ae
5 changed files with 54 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ import { v4 as uuidv4 } from 'uuid';
import { sendSqlMigrationActionEvent, TelemetryAction, TelemetryViews, logError } from '../telemtery';
import { hashString, deepClone } from '../api/utils';
import { SKURecommendationPage } from '../wizard/skuRecommendationPage';
import { excludeDatabses, TargetDatabaseInfo } from '../api/sqlUtils';
import { excludeDatabases, TargetDatabaseInfo } from '../api/sqlUtils';
const localize = nls.loadMessageBundle();
export enum State {
@@ -294,7 +294,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
}
public async getDatabases(): Promise<string[]> {
const temp = await azdata.connection.listDatabases(this.sourceConnectionId);
const finalResult = temp.filter((name) => !excludeDatabses.includes(name));
const finalResult = temp.filter((name) => !excludeDatabases.includes(name));
return finalResult;
}
public hasRecommendedDatabaseListChanged(): boolean {