mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Add profile section in Publish project UI (#21906)
* Add profile section in Publish project UI * Move publish profile row below Publish Target * Add contract for savePublishProfie and SaveProfileAs button functionality * Make the DacFx contract functional * Send values from UI to DacFx service call * Fix build error * Address comment, remove print statements * Address comments * Set correct connection string
This commit is contained in:
@@ -22,6 +22,11 @@ export const mockDacFxResult = {
|
||||
report: ''
|
||||
};
|
||||
|
||||
export const mockSavePublishResult = {
|
||||
success: true,
|
||||
errorMessage: ''
|
||||
};
|
||||
|
||||
/* Get the deployment options sample model */
|
||||
export function getDeploymentOptions(): mssql.DeploymentOptions {
|
||||
const sampleDesc = 'Sample Description text';
|
||||
@@ -57,6 +62,7 @@ export class MockDacFxService implements mssql.IDacFxService {
|
||||
public getOptionsFromProfile(_: string): Thenable<mssql.DacFxOptionsResult> { return Promise.resolve(mockDacFxOptionsResult); }
|
||||
public validateStreamingJob(_: string, __: string): Thenable<mssql.ValidateStreamingJobResult> { return Promise.resolve(mockDacFxResult); }
|
||||
public parseTSqlScript(_: string, __: string): Thenable<mssql.ParseTSqlScriptResult> { return Promise.resolve({ containsCreateTableStatement: true }); }
|
||||
public savePublishProfile(_: string, __: string, ___: string, ______?: Record<string, string>): Thenable<azdata.ResultStatus> { return Promise.resolve(mockSavePublishResult); }
|
||||
}
|
||||
|
||||
export function createContext(): TestContext {
|
||||
|
||||
Reference in New Issue
Block a user