Update RedGate worker friendly templates with new functionality#1555
Update RedGate worker friendly templates with new functionality#1555twerthi merged 3 commits intoOctopusDeploy:masterfrom
Conversation
|
Not sure why the formatting is so off - json files edited in VSCode. Any suggestions? |
|
@twerthi @BobJWalker since you've both contributed here before open to your feedback. The new connection string parameter bypasses the New-DatabaseConnection command and instead instantiates RedGate.Versioning.Automation.Compare.SchemaSources.DatabaseConnection to pass a custom connection string. New-DatabaseConnection supports a very limited subset of Authentication values, this seemed the best way to handle this. |
|
Hey @markgould it looks like it might be a spaces vs tabs issue causing the amount of changes. Hiding white space in the file view makes only the actual changes to show up. |
|
That sounds reasonable to me. As you're probably aware, Redgate is opting to invest in the Flyway database migrations product vs. the SQL Automation product so these templates may receive reduced usage. |
Yeah - we have it on our roadmap to transition at some point but have lots of projects using it today so it will take some time for us to migrate. Hopefully this can help others that may still be using the Change Automation tools. |
Could be, looks like some of the formatting may have been off previously too. Any changes you'd like me to make here? |
|
@markgould There is an error in the template I didn't check the others, would you mind checking the other two for a similar situation? |
|
Looks to be a similar issue with the database name, the code is using |
|
I see what's going on here - there are discrepancies with the parameter names in the deploy-from-package vs the other two, so when I updated that one there was an issue with it using the wrong variable names. Correcting now. |
…lues. Fix variable name issues in Deploy From Package.
|
Should be good now. I also noticed an issue in how I was checking the Trust Server Certificate value across the 3 scripts, changed to use Convert.ToBoolean to handle empty values. Thanks for the feedback! |
Background
Results
Existing behavior still works
After
Pre-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 it