mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 17:24:01 -05:00
[SQL Migration] Refactor resource selection filtering logic + misc UI improvements (#19152)
* WIP * WIP * WIP * Fix location dropdown not working properly * Clean up comments * Switch button order in selectMigrationServiceDialog * Vbump to 1.0.1 * Refactor to avoid duplicate API calls * Add null checks * Fix migration status dialog not sorting migrations properly * Address comments, remove unnecessary code * Address comments - separate util methods by resource type, use logError instead of console.log * Remove unused methods * Fix DMS creation on newly created resource group * Fix stale account behavior * Address comments - remove telemetry context from util method calls * Clean up imports * Fix dashboard service monitoring not working * Fix null reference on database backup page, and resources not updating properly when location is changed * Fix dashboard not auto selecting DMS after migration started * Add null checks
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import AdsTelemetryReporter, { TelemetryEventMeasures, TelemetryEventProperties } from '@microsoft/ads-extension-telemetry';
|
||||
import { getPackageInfo } from './api/utils';
|
||||
const packageJson = require('../package.json');
|
||||
let packageInfo = getPackageInfo(packageJson)!;
|
||||
let packageInfo = {
|
||||
name: packageJson.name,
|
||||
version: packageJson.version,
|
||||
aiKey: packageJson.aiKey
|
||||
};
|
||||
|
||||
export const TelemetryReporter = new AdsTelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);
|
||||
|
||||
@@ -19,7 +22,7 @@ export enum TelemetryViews {
|
||||
MigrationCutoverDialog = 'MigrationCutoverDialog',
|
||||
MigrationStatusDialog = 'MigrationStatusDialog',
|
||||
MigrationWizardAccountSelectionPage = 'MigrationWizardAccountSelectionPage',
|
||||
MigrationWizardTaSkuRecommendationPage = 'MigrationWizardTaSkuRecommendationPage',
|
||||
MigrationWizardSkuRecommendationPage = 'MigrationWizardSkuRecommendationPage',
|
||||
MigrationWizardTargetSelectionPage = 'MigrationWizardTargetSelectionPage',
|
||||
MigrationWizardIntegrationRuntimePage = 'MigrationWizardIntegrationRuntimePage',
|
||||
MigrationWizardSummaryPage = 'MigrationWizardSummaryPage',
|
||||
@@ -30,6 +33,7 @@ export enum TelemetryViews {
|
||||
SkuRecommendationWizard = 'SkuRecommendationWizard',
|
||||
DataCollectionWizard = 'GetAzureRecommendationDialog',
|
||||
SelectMigrationServiceDialog = 'SelectMigrationServiceDialog',
|
||||
Utils = 'Utils'
|
||||
}
|
||||
|
||||
export enum TelemetryAction {
|
||||
|
||||
Reference in New Issue
Block a user