-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[fleet] Add escape_string and to_json helpers #135992
Conversation
Pinging @elastic/fleet (Team:Fleet) |
…-ref HEAD~1..HEAD --fix'
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thanks for taking this on.
@elastic/integrations Is there somewhere we should document helpers like this for integration maintainers? |
We should document these (and any other custom handlebar functions like |
I wonder about the feasibility of backporting this to 7.17. We have many Fleet packages that are supported in 7.17 and 8.x. If we wanted to use these functions then we'll have to drop 7.17 support in these Fleet packages. |
Added the backport labels after checking it is fine with @kpollich |
* Add escape_string and to_json helpers * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Add regexp for new line and fix tests * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4a23325)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* Add escape_string and to_json helpers * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Add regexp for new line and fix tests * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4a23325) Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* Add escape_string and to_json helpers * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Add regexp for new line and fix tests * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4a23325)
* Add escape_string and to_json helpers * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Add regexp for new line and fix tests * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4a23325) Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
Summary
Adds to_json and escape_string helpers to handlebars for fleet server.
Closes #127268
Related #133070
Checklist
For maintainers