Connection Name was added a while ago, these templates weren't update…#1650
Merged
harrisonmeister merged 1 commit intomasterfrom Feb 19, 2026
Merged
Connection Name was added a while ago, these templates weren't update…#1650harrisonmeister merged 1 commit intomasterfrom
harrisonmeister merged 1 commit intomasterfrom
Conversation
…d with it. The create user one was completely broken and has been for a while, I don't know what I was thinking with I submitted the last PR for it
|
Start Hyponome locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The cmdlets that these templates use, SimplySql, was updated quite some time ago to include a named connection parameter. These templates were not updated to make use of it, the
finallywould attempt to close a closed connection and fail obscuring the actual error. The cfreate user template was completely broken, the connection string section wasn't populating resulting in a connection string without any of the parameters substituted.Results
Templates have been updated,
finallystatement updated to test for open connection before trying to close.Before
If templates encountered an error, the
finallystatement woudl attempt to close a closed connection and fail, hiding the originating error.After
finallytests for a closed connection first so it doesn't hide the errorPre-requisites
Idshould be a GUID that is not00000000-0000-0000-0000-000000000000Idproperty (updating theIdwill break the Library sync functionality in Octopus).Versionshould be incremented, otherwise the integration with Octopus won't update the step template correctly$LastModifiedByfield must be present, and (optionally) updated with the correct authorCategoryhas been created:{categoryname}.pngmust be present under thestep-templates/logosfolderswitchin thehumanizefunction ingulpfile.babel.jsmust have acasestatement corresponding to itFixes errors I found.