mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -05:00
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:
@@ -23,7 +23,7 @@ export class MigrationLocalStorage {
|
||||
const migrationMementos: MigrationContext[] = this.context.globalState.get(this.mementoToken) || [];
|
||||
|
||||
dataBaseMigrations = migrationMementos.filter((memento) => {
|
||||
return memento.connection.serverName === connectionProfile.serverName;
|
||||
return memento.sourceConnectionProfile.serverName === connectionProfile.serverName;
|
||||
}).map((memento) => {
|
||||
return memento;
|
||||
});
|
||||
@@ -35,13 +35,13 @@ export class MigrationLocalStorage {
|
||||
return dataBaseMigrations;
|
||||
}
|
||||
|
||||
public static saveMigration(connection: azdata.connection.ConnectionProfile, migration: DatabaseMigration, targetMI: SqlManagedInstance, azureAccount: azdata.Account, subscription: azureResource.AzureResourceSubscription): void {
|
||||
public static saveMigration(connectionProfile: azdata.connection.ConnectionProfile, migrationContext: DatabaseMigration, targetMI: SqlManagedInstance, azureAccount: azdata.Account, subscription: azureResource.AzureResourceSubscription): void {
|
||||
try {
|
||||
const migrationMementos: MigrationContext[] = this.context.globalState.get(this.mementoToken) || [];
|
||||
migrationMementos.push({
|
||||
connection: connection,
|
||||
migration: migration,
|
||||
targetMI: targetMI,
|
||||
sourceConnectionProfile: connectionProfile,
|
||||
migrationContext: migrationContext,
|
||||
targetManagedInstance: targetMI,
|
||||
subscription: subscription,
|
||||
azureAccount: azureAccount
|
||||
});
|
||||
@@ -57,9 +57,9 @@ export class MigrationLocalStorage {
|
||||
}
|
||||
|
||||
export interface MigrationContext {
|
||||
connection: azdata.connection.ConnectionProfile,
|
||||
migration: DatabaseMigration,
|
||||
targetMI: SqlManagedInstance,
|
||||
sourceConnectionProfile: azdata.connection.ConnectionProfile,
|
||||
migrationContext: DatabaseMigration,
|
||||
targetManagedInstance: SqlManagedInstance,
|
||||
azureAccount: azdata.Account,
|
||||
subscription: azureResource.AzureResourceSubscription
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user