Populate Project in Update project from db UI (#23169)

* Populate Project in Update Project from db UI

* Add tests

* Fix test

* Address comment
This commit is contained in:
Sakshi Sharma
2023-05-22 15:23:04 -07:00
committed by GitHub
parent 3bec68b860
commit dca1a467f3
3 changed files with 116 additions and 3 deletions

View File

@@ -536,6 +536,9 @@ export class UpdateProjectFromDatabaseDialog {
connection.password = connection.options.password = credentials.password;
}
const projectFilePath = this.projectFileDropdown!.value! as string;
this.project = await Project.openProject(projectFilePath);
const connectionDetails: azdata.IConnectionProfile = {
id: connection.connectionId,
userName: connection.userName,
@@ -569,10 +572,10 @@ export class UpdateProjectFromDatabaseDialog {
const targetEndpointInfo: mssql.SchemaCompareEndpointInfo = {
endpointType: mssql.SchemaCompareEndpointType.Project,
projectFilePath: this.projectFileDropdown!.value! as string,
projectFilePath: projectFilePath,
extractTarget: mapExtractTargetEnum(<string>this.folderStructureDropDown!.value),
targetScripts: [],
dataSchemaProvider: this.project!.getProjectTargetVersion(),
dataSchemaProvider: this.project.getProjectTargetVersion(),
connectionDetails: connectionDetails,
databaseName: '',
serverDisplayName: '',