Skip to content

Modernize escape functions#1238

Merged
david22swan merged 1 commit intopuppetlabs:mainfrom
smortex:modernize-escape-functions
May 16, 2022
Merged

Modernize escape functions#1238
david22swan merged 1 commit intopuppetlabs:mainfrom
smortex:modernize-escape-functions

Conversation

@smortex
Copy link
Copy Markdown
Collaborator

@smortex smortex commented Apr 27, 2022

Quoting #1235 (comment)

What's with these functions using the old API?

Let's fix this!

@smortex smortex requested a review from a team as a code owner April 27, 2022 23:02
@puppet-community-rangefinder
Copy link
Copy Markdown

batch_escape is a function

that may have no external impact to Forge modules.

powershell_escape is a function

that may have no external impact to Forge modules.

shell_escape is a function

Breaking changes to this file MAY impact these 6 modules (near match):

batch_escape is a function

that may have no external impact to Forge modules.

powershell_escape is a function

that may have no external impact to Forge modules.

shell_escape is a function

Breaking changes to this file MAY impact these 6 modules (near match):

This module is declared in 318 of 579 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

ekohl
ekohl previously approved these changes Apr 27, 2022
@smortex
Copy link
Copy Markdown
Collaborator Author

smortex commented Apr 27, 2022

Cc @alexjfisher

This is a quick test to check what needs to be done when modernizing a function. I am about to be AFK for a few weeks but will be happy to help migrate more functions when I am back 😉

Comment thread lib/puppet/functions/batch_escape.rb
Comment thread lib/puppet/functions/shell_escape.rb Outdated
@smortex smortex force-pushed the modernize-escape-functions branch from bb17ee8 to 78508de Compare April 28, 2022 17:52
Copy link
Copy Markdown
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

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

Changes LGTM
Thanks for the work :)

@david22swan david22swan merged commit 25b0fbd into puppetlabs:main May 16, 2022
@smortex smortex deleted the modernize-escape-functions branch May 16, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants