mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 01:25:38 -05:00
Add migration service calls to migration wizard (#12090)
* Hook up migration apis WIP * WIP 2 * WIP 3 * Fix build breaks * Break 2 * WIP 4 * SKU recommendation page work * WIP 5 * A few minor fixes * Merge main * Add back assessment dialog * Address feedback Co-authored-by: Amir Omidi <amomidi@microsoft.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import * as mssql from '../../../mssql';
|
||||
import { SKURecommendations } from './externalContract';
|
||||
|
||||
export enum State {
|
||||
@@ -42,10 +43,12 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
private _currentState: State;
|
||||
private _gatheringInformationError: string | undefined;
|
||||
private _skuRecommendations: SKURecommendations | undefined;
|
||||
private _assessmentResults: mssql.SqlMigrationAssessmentResultItem[] | undefined;
|
||||
|
||||
constructor(
|
||||
private readonly _extensionContext: vscode.ExtensionContext,
|
||||
private readonly _sourceConnection: azdata.connection.Connection
|
||||
private readonly _sourceConnection: azdata.connection.Connection,
|
||||
public readonly migrationService: mssql.ISqlMigrationService
|
||||
) {
|
||||
this._currentState = State.INIT;
|
||||
}
|
||||
@@ -66,6 +69,14 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
this._stateChangeEventEmitter.fire({ oldState, newState: this.currentState });
|
||||
}
|
||||
|
||||
public get assessmentResults(): mssql.SqlMigrationAssessmentResultItem[] | undefined {
|
||||
return this._assessmentResults;
|
||||
}
|
||||
|
||||
public set assessmentResults(assessmentResults: mssql.SqlMigrationAssessmentResultItem[] | undefined) {
|
||||
this._assessmentResults = assessmentResults;
|
||||
}
|
||||
|
||||
public get gatheringInformationError(): string | undefined {
|
||||
return this._gatheringInformationError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user