Skip to content
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

[7.8] [Alerting] changes preconfigured actions config from array to object (#65397) #65759

Merged
merged 1 commit into from
May 7, 2020

Conversation

pmuellr
Copy link
Member

@pmuellr pmuellr commented May 7, 2020

Backports the following commits to 7.8:

…lastic#65397)

resolves elastic#63171

Previously, preconfigured actions were specified as an array of action
properties.  This ended up being problematic when using the kibana keystore
for secrets, as you'd have to reference specific actions via index.

This changes preconfigured actions to be specified as an object, where the
property key is the id, and the body is the remainder of the action properties.

As access to preconfigured actions has leaked across the code base, it's
probably time to consider changing the internal representation from an array
to a Map, to provide easier access by action id.  For a future PR.
# Conflicts:
#	docs/user/alerting/action-types/email.asciidoc
#	docs/user/alerting/action-types/index.asciidoc
#	docs/user/alerting/action-types/pagerduty.asciidoc
#	docs/user/alerting/action-types/server-log.asciidoc
#	docs/user/alerting/action-types/slack.asciidoc
#	docs/user/alerting/action-types/webhook.asciidoc
#	docs/user/alerting/pre-configured-connectors.asciidoc
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pmuellr pmuellr merged commit 667406a into elastic:7.8 May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants