First check in for Migration Dashboard (#14309)

* Adding Dashboard
Fixing auth keys api
create status Dialog

* making some changes requested in the PR

* switched to text component from dom component

* Adding TODO comment

* Fixing image url to work on windows

* Fixing stuff pointed out in PR comments

* adding return type to dasboard register function

* Adding more todos
This commit is contained in:
Aasim Khan
2021-02-18 10:25:52 -08:00
committed by GitHub
parent 30f55be67d
commit b719099ad3
17 changed files with 739 additions and 34 deletions

View File

@@ -453,7 +453,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
Scope: this._targetManagedInstance.id
}
};
console.log(requestBody);
const response = await startDatabaseMigration(
this.azureAccount,
this._targetSubscription,
@@ -464,9 +464,8 @@ export class MigrationStateModel implements Model, vscode.Disposable {
requestBody
);
console.log(response);
if (!response.error) {
MigrationLocalStorage.saveMigration(currentConnection!, response, this._targetManagedInstance, this.azureAccount, this._targetSubscription);
if (response.status === 201) {
MigrationLocalStorage.saveMigration(currentConnection!, response.databaseMigration, this._targetManagedInstance, this.azureAccount, this._targetSubscription);
}
vscode.window.showInformationMessage(constants.MIGRATION_STARTED);