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

Load alert on delete with a fallback instead of doubling the calls (ESO + SOC calls) #57004

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

mikecote
Copy link
Contributor

@mikecote mikecote commented Feb 6, 2020

Resolves the delete API follow up portion of #56619.

This PR resolves the conversation previously had with @pmuellr in regards to avoiding loading the saved object twice when most cases only one call will work. Ref: #56543 (comment).

In the previous PR, when deleting an alert, the system would load the alert via ESO plugin and via SOC at the same time. It would then disregard the result from ESO if ever it threw an error. The changes now rely on ESO working (without broken AAD) but will fallback to SOC.

Definitions
ESO = Encrypted Saved Objects
SOC = Saved Objects Client

@mikecote mikecote added review Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Feb 6, 2020
@mikecote mikecote self-assigned this Feb 6, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@mikecote
Copy link
Contributor Author

mikecote commented Feb 6, 2020

@elaslticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes review Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants