Revert 'Add profile section in Publish project UI (#21906)' (#22047)

This reverts commit cb58286247.
This commit is contained in:
Kim Santiago
2023-02-27 15:09:50 -08:00
committed by GitHub
parent febfe3718f
commit e675fc14f0
10 changed files with 23 additions and 131 deletions

View File

@@ -551,14 +551,6 @@ export interface ParseTSqlScriptParams {
databaseSchemaProvider: string;
}
export interface SavePublishProfileParams {
profilePath: string;
databaseName: string;
connectionString: string;
sqlCommandVariableValues?: Record<string, string>;
deploymentOptions?: mssql.DeploymentOptions;
}
export namespace ExportRequest {
export const type = new RequestType<ExportParams, mssql.DacFxResult, void, void>('dacfx/export');
}
@@ -595,10 +587,6 @@ export namespace ParseTSqlScriptRequest {
export const type = new RequestType<ParseTSqlScriptParams, mssql.ParseTSqlScriptResult, void, void>('dacfx/parseTSqlScript');
}
export namespace SavePublishProfileRequest {
export const type = new RequestType<SavePublishProfileParams, azdata.ResultStatus, void, void>('dacfx/savePublishProfile');
}
// ------------------------------- </ DacFx > ------------------------------------
// ------------------------------- < Sql Projects > ------------------------------------

View File

@@ -141,15 +141,4 @@ export class DacFxService implements mssql.IDacFxService {
throw e;
}
}
public async savePublishProfile(profilePath: string, databaseName: string, connectionString: string, sqlCommandVariableValues?: Record<string, string>, deploymentOptions?: mssql.DeploymentOptions): Promise<azdata.ResultStatus> {
const params: contracts.SavePublishProfileParams = { profilePath, databaseName, connectionString, sqlCommandVariableValues, deploymentOptions };
try {
const result = await this.client.sendRequest(contracts.SavePublishProfileRequest.type, params);
return result;
} catch (e) {
this.client.logFailedRequest(contracts.SavePublishProfileRequest.type, e);
throw e;
}
}
}

View File

@@ -242,7 +242,6 @@ declare module 'mssql' {
getOptionsFromProfile(profilePath: string): Thenable<DacFxOptionsResult>;
validateStreamingJob(packageFilePath: string, createStreamingJobTsql: string): Thenable<ValidateStreamingJobResult>;
parseTSqlScript(filePath: string, databaseSchemaProvider: string): Thenable<ParseTSqlScriptResult>;
savePublishProfile(profilePath: string, databaseName: string, connectionString: string, sqlCommandVariableValues?: Record<string, string>, deploymentOptions?: DeploymentOptions): Thenable<azdata.ResultStatus>;
}
export interface DacFxResult extends azdata.ResultStatus {