SQL-Migration: enable cross subscription service migration (#22876)

* x subscription migration support

* refresh after cutover

* fix service irregular status load behavior

* queue service status requests, fix typo

* add migationTargetServerName helper method

* save context before api call
This commit is contained in:
brian-harris
2023-04-27 16:28:32 -07:00
committed by GitHub
parent 65f8915b7e
commit fe32180c71
15 changed files with 347 additions and 240 deletions

View File

@@ -78,7 +78,7 @@ export class MigrationsListTab extends TabBase<MigrationsListTab> {
}
}
public async refresh(): Promise<void> {
public async refresh(initialize?: boolean): Promise<void> {
if (this.isRefreshing ||
this._refreshLoader === undefined) {
@@ -91,6 +91,10 @@ export class MigrationsListTab extends TabBase<MigrationsListTab> {
await this.statusBar.clearError();
if (initialize) {
await this.updateServiceButtonContext(this._serviceContextButton);
}
await this._statusTable.updateProperty('data', []);
this._migrations = await getCurrentMigrations();
await this._populateMigrationTable();
@@ -180,12 +184,11 @@ export class MigrationsListTab extends TabBase<MigrationsListTab> {
this.serviceContextChangedEvent.event(
async (e) => {
if (e.connectionId === await getSourceConnectionId()) {
await this.updateServiceContext(this._serviceContextButton);
await this.refresh();
await this.refresh(true);
}
}
));
await this.updateServiceContext(this._serviceContextButton);
await this.updateServiceButtonContext(this._serviceContextButton);
this._searchBox = this.view.modelBuilder.inputBox()
.withProps({