Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final ADS-side hookup for sqlcmd vars #10815

Merged
merged 8 commits into from
Jun 13, 2020
Merged

Final ADS-side hookup for sqlcmd vars #10815

merged 8 commits into from
Jun 13, 2020

Conversation

Benjin
Copy link
Contributor

@Benjin Benjin commented Jun 9, 2020

This PR fixes #10703 by adding support for reading sqlcmdvars from the project file, and adds a test for confirming they're part of the final deployment/script generation task profiles.

@coveralls
Copy link

coveralls commented Jun 9, 2020

Coverage Status

Coverage remained the same at 34.46% when pulling 1c525dc on benjin/sqlcmdProjHookup into 2336463 on master.

const varName = sqlCmdVar.getAttribute(constants.Include);

const varValue = sqlCmdVar.getElementsByTagName(constants.DefaultValue)[0].childNodes[0].nodeValue;
this.sqlCmdVariables[varName] = varValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tell me if I understand correctly - we are only taking the values from proj file as is?

(we should give a way to edit at deployment time... through profile or in the dialog itself like SSDT)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, it's just passthrough from the sqlproj file here to make sure it has proper interop with projects coming from SSDT. I figured variable editing would happen when we get something like a project properties dialog going since that's the existing experience for defining and setting them.

Made #10841 to track

@Benjin Benjin merged commit ddb210e into master Jun 13, 2020
@Benjin Benjin deleted the benjin/sqlcmdProjHookup branch June 13, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sqlcmd Vars should be passed to DacFx correctly
4 participants