Skip to content

Commit

Permalink
Merge branch 'main' into bavaldez/databaseValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
barbaravaldez committed Jul 14, 2023
2 parents 1012c03 + 7bc05e5 commit 8b6bdf0
Show file tree
Hide file tree
Showing 28 changed files with 316 additions and 68 deletions.
6 changes: 2 additions & 4 deletions extensions/mssql/src/objectManagement/ui/databaseDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,8 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
}

private initializeLedgerSection(): void {
// Ledger Database
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async (checked) => {
this.objectInfo.isLedgerDatabase = checked;
}, this.objectInfo.isLedgerDatabase);
// Ledger Database - ReadOnly (This can only be set during creation and not changed afterwards)
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async () => { }, this.objectInfo.isLedgerDatabase, false);

const ledgerSection = this.createGroup(localizedConstants.LedgerSectionHeader, [
this.isLedgerDatabaseInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export class CreateProjectFromDatabaseDialog {
this.dialog.cancelButton.label = constants.cancelButtonText;

let connected = false;
if (this.profile) {

// make sure the connection profile passed in has sufficient information to attempt to connect
if (this.profile && this.profile?.serverName) {
const connections = await getAzdataApi()!.connection.getConnections(true);
connected = !!connections.find(c => c.connectionId === this.profile!.id);

Expand Down
2 changes: 1 addition & 1 deletion extensions/sql-migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sql-migration",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.4.8",
"version": "1.4.9",
"publisher": "Microsoft",
"preview": false,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
Expand Down
3 changes: 2 additions & 1 deletion extensions/sql-migration/src/api/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ async function getAzureCoreAPI(): Promise<azurecore.IExtension> {
export type Subscription = azurecore.azureResource.AzureResourceSubscription;
export async function getSubscriptions(account: azdata.Account): Promise<Subscription[]> {
const api = await getAzureCoreAPI();
const subscriptions = await api.getSubscriptions(account, false);
const subscriptions = await api.getSubscriptions(account, true);

let listOfSubscriptions = subscriptions.subscriptions;
sortResourceArrayByName(listOfSubscriptions);
return subscriptions.subscriptions;
Expand Down
2 changes: 1 addition & 1 deletion extensions/sql-migration/src/constants/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const ASSESSMENT_COMPLETED = (serverName: string): string => {
export const ASSESSMENT_FAILED = (serverName: string): string => {
return localize('sql.migration.assessment.failed', "The assessment of your SQL Server instance '{0}' failed.", serverName);
};
export function ASSESSMENT_TILE(serverName: string): string {
export function ASSESSMENT_TITLE(serverName: string): string {
return localize('sql.migration.assessment', "Assessment results for '{0}'", serverName);
}
export function CAN_BE_MIGRATED(eligibleDbs: number, totalDbs: number): string {
Expand Down
7 changes: 4 additions & 3 deletions extensions/sql-migration/src/wizard/skuRecommendationPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,10 @@ export class SKURecommendationPage extends MigrationWizardPage {

this._serverName = this.migrationStateModel.serverName || (await getSourceConnectionProfile()).serverName;

const miDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLMI);
const vmDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLVM);
const dbDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLDB);
const assessmentTitle = constants.ASSESSMENT_TITLE(this._serverName);
const miDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLMI);
const vmDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLVM);
const dbDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLDB);

this._disposables.push(button.onDidClick(async (e) => {
switch (this._rbg.selectedCardId) {
Expand Down
2 changes: 1 addition & 1 deletion product.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"reportIssueUrl": "https://github.com/Microsoft/azuredatastudio/issues/new",
"requestFeatureUrl": "https://go.microsoft.com/fwlink/?linkid=2118021",
"privacyStatementUrl": "https://privacy.microsoft.com/privacystatement",
"telemetryOptOutUrl": "https://github.com/Microsoft/azuredatastudio/wiki/How-to-Disable-Telemetry-Reporting",
"telemetryOptOutUrl": "https://go.microsoft.com/fwlink/?linkid=2241254",
"urlProtocol": "azuredatastudio-oss",
"enableTelemetry": false,
"webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/3c8520fab514b9f56070214496b26ff68d1b1cb5/out/vs/workbench/contrib/webview/browser/pre/",
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/es/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Autenticación de Azure: código de dispositivo]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[No se puede iniciar un explorador web en este entorno. Inicie un explorador, navegue a la dirección URL anterior y escriba el código manualmente.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Archivos XEL]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/fr/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Authentification Azure : code d’appareil]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Impossible de lancer un navigateur web dans cet environnement. Lancez un navigateur, accédez à l’URL ci-dessus et entrez le code manuellement.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Fichiers XEL]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/it/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Autenticazione di Azure: codice dispositivo]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Non è possibile avviare un Web browser in questo ambiente. Avviare un browser, passare all'URL precedente e immettere il codice manualmente.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[File XEL]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/ko/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Azure 인증: 디바이스 코드]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[이 환경에서는 웹 브라우저를 시작할 수 없습니다. 브라우저를 시작하고 위의 URL로 이동한 후 코드를 수동으로 입력하세요.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[XEL 파일.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/pt-BR/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Autenticação do Azure: Código do Dispositivo]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Um navegador da Web não pode ser iniciado neste ambiente. Inicie um navegador, navegue até o URL acima e insira o código manualmente.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Arquivos XEL]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
27 changes: 27 additions & 0 deletions resources/localization/LCL/ru/sql.xlf.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -15804,6 +15804,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.deviceCodeAuthDialogTitle" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Azure Auth: Device Code]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Проверка подлинности Azure: код устройства]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialog.oauthDialog.cancel" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down Expand Up @@ -15840,6 +15849,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/accountManagement/browser/autoOAuthDialogController.selfHelpMessage" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[A web browser cannot be launched in this environment, please launch a browser, navigate to the URL above and enter code manually.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Невозможно запустить веб-браузер в этой среде. Запустите браузер, перейдите по URL-адресу выше и введите код вручную.]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/admin/common/adminService.adminService.noHandlerRegistered" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[No Handler Registered]]></Val>
Expand Down Expand Up @@ -18564,6 +18582,15 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/profiler/browser/profilerService.FileFilterDescription" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[XEL Files]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Файлы XEL]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";src/sql/workbench/services/query/common/gridDataProvider.gridDataProvider.cancelCopyResults" ItemType="0" PsrId="308" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Cancel]]></Val>
Expand Down
Loading

0 comments on commit 8b6bdf0

Please sign in to comment.