-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
alerting/transformActionParams does not handle arrays #44057
Labels
Comments
Pinging @elastic/kibana-stack-services |
pmuellr
added a commit
to pmuellr/kibana
that referenced
this issue
Aug 27, 2019
fixes elastic#44057 Prior to this fix, values inside an array were not subject to the mustache transform.
pmuellr
added a commit
that referenced
this issue
Aug 27, 2019
* Fixes alert mustache templating with arrays fixes #44057 Prior to this fix, values inside an array were not subject to the mustache transform.
pmuellr
added a commit
to pmuellr/kibana
that referenced
this issue
Aug 27, 2019
* Fixes alert mustache templating with arrays fixes elastic#44057 Prior to this fix, values inside an array were not subject to the mustache transform.
simianhacker
pushed a commit
to simianhacker/kibana
that referenced
this issue
Aug 27, 2019
* Fixes alert mustache templating with arrays fixes elastic#44057 Prior to this fix, values inside an array were not subject to the mustache transform.
pmuellr
added a commit
that referenced
this issue
Aug 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
current version of code:
kibana/x-pack/legacy/plugins/alerting/server/lib/transform_action_params.ts
Lines 7 to 23 in 19c85d6
Arrays end up getting treated as objects, where the indices become string keys. Those objects end up failing schema validation.
On a lark, I re-wrote the function like this, which seemed to work for my purpose, but didn't run any tests:
The text was updated successfully, but these errors were encountered: