mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
Adding support for blob containers in migration extension (#15516)
* Adding support for blob containers and infoboxes * vbumping migration for May month release. * setting resotered count to 0 when the active backupsets is empty. * Removing unnecessary ! * Excluding readme gif from the vsix package * Removing info box as it not needed now. * Removing all the changes to migration mode page for the infobox
This commit is contained in:
@@ -515,7 +515,15 @@ export class MigrationCutoverDialog {
|
||||
|
||||
this._migrationStatus.value = migrationStatusTextValue ?? '---';
|
||||
this._fullBackupFile.value = fullBackupFileName! ?? '-';
|
||||
this._backupLocation.value = this._model._migration.migrationContext.properties.backupConfiguration?.sourceLocation?.fileShare?.path! ?? '-';
|
||||
let backupLocation;
|
||||
|
||||
// Displaying storage accounts and blob container for azure blob backups.
|
||||
if (this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation?.azureBlob) {
|
||||
backupLocation = `${this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation.azureBlob.storageAccountResourceId.split('/').pop()} - ${this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation.azureBlob.blobContainerName}`;
|
||||
} else {
|
||||
backupLocation = this._model._migration.migrationContext.properties.backupConfiguration?.sourceLocation?.fileShare?.path! ?? '-';
|
||||
}
|
||||
this._backupLocation.value = backupLocation ?? '-';
|
||||
|
||||
this._lastAppliedLSN.value = lastAppliedSSN! ?? '-';
|
||||
this._lastAppliedBackupFile.value = this._model.migrationStatus.properties.migrationStatusDetails?.lastRestoredFilename ?? '-';
|
||||
@@ -538,7 +546,7 @@ export class MigrationCutoverDialog {
|
||||
});
|
||||
|
||||
if (migrationStatusTextValue === MigrationStatus.InProgress) {
|
||||
const restoredCount = (this._model.migrationStatus.properties.migrationStatusDetails?.activeBackupSets.filter(a => a.listOfBackupFiles[0].status === 'Restored'))?.length!;
|
||||
const restoredCount = (this._model.migrationStatus.properties.migrationStatusDetails?.activeBackupSets?.filter(a => a.listOfBackupFiles[0].status === 'Restored'))?.length ?? 0;
|
||||
if (restoredCount > 0) {
|
||||
this._cutoverButton.enabled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user