Skip to content

[7.x] [Alerting & Actions] Overwrite SOs when updating instead of partially updating (#73688)#77857

Merged
gmmorris merged 1 commit intoelastic:7.xfrom
gmmorris:backport/7.x/pr-73688
Sep 18, 2020
Merged

[7.x] [Alerting & Actions] Overwrite SOs when updating instead of partially updating (#73688)#77857
gmmorris merged 1 commit intoelastic:7.xfrom
gmmorris:backport/7.x/pr-73688

Conversation

@gmmorris
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

… updating (elastic#73688)

This PR changes the Alerts & Actions clients to ensure they require full updates (rather than partial) to SOs and overwrites the entire document when making the update.
This is to prevent the situation where nested objects get _merged_ instead of replaced when a user makes an `update`.

We also enhanced the EncryptedSavedObjectsClient to allow specified `id`s when overwriting an existing object.
@gmmorris gmmorris added the backport This PR is a backport of another PR label Sep 18, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

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

@gmmorris gmmorris merged commit 701e7c1 into elastic:7.x Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants