Skip to content

[7.x] Configurable media type for mustache template encoding on set processor #68952

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

Merged
merged 4 commits into from
Feb 12, 2021

Conversation

danhermann
Copy link
Contributor

The set processor permits the value that it sets to be specified with a Mustache template snippet. Our Mustache script engine allows three different media types to be used when writing the value that the snippet evaluates to but the Set processor was hard-coded to always use the application/json type. This adds an optional media_type property to the Set processor that may be set to any of the three types (application/json, text/plain, application/x-www-form-urlencoded) that the Mustache script engine supports. The default type remains application/json.

Closes #65115

Backport of #65314 and #67860

@danhermann danhermann added >enhancement :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP backport v7.12.0 labels Feb 12, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Feb 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@danhermann danhermann merged commit ff80dc0 into elastic:7.x Feb 12, 2021
@danhermann danhermann deleted the backport_7x_65314_media_type branch February 12, 2021 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement Team:Data Management Meta label for data/management team v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants