Skip to content

[Cases][SecOps] Fix bug where observables are not created#133752

Merged
cnasikas merged 3 commits intoelastic:mainfrom
cnasikas:fix_secops
Jun 9, 2022
Merged

[Cases][SecOps] Fix bug where observables are not created#133752
cnasikas merged 3 commits intoelastic:mainfrom
cnasikas:fix_secops

Conversation

@cnasikas
Copy link
Copy Markdown
Member

@cnasikas cnasikas commented Jun 7, 2022

Summary

Elasticsearch client got updated to 8.0 in this PR: #113950. One of the major changes of the new version is the removal of the body attribute from the results of the various operations. A @ts-expect-error in our code did not warn the author of the above PR. For that reason, if someone pushes a case to SecOps with alerts attached to the case he/she will not see any observables. The response of mgetwhere we use to fetch the alerts) will always return an empty array because the body attribute is missing. This PR fixes this issue.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Cases Cases feature auto-backport Deprecated - use backport:version if exact versions are needed v8.3.0 v8.1.4 v8.4.0 v8.2.3 labels Jun 7, 2022
@cnasikas cnasikas requested a review from a team as a code owner June 7, 2022 12:23
@cnasikas cnasikas self-assigned this Jun 7, 2022
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas cnasikas added v8.1.4 and removed v8.1.4 labels Jun 7, 2022
@cnasikas cnasikas changed the title [Cases] Push observables [Cases] Fix bug where observables are not created Jun 7, 2022
@cnasikas cnasikas changed the title [Cases] Fix bug where observables are not created [Cases][SecOps] Fix bug where observables are not created Jun 7, 2022
@cnasikas cnasikas requested a review from jonathan-buttner June 8, 2022 09:49
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @cnasikas

@cnasikas cnasikas merged commit 47ffdd8 into elastic:main Jun 9, 2022
@cnasikas cnasikas deleted the fix_secops branch June 9, 2022 07:32
kibanamachine pushed a commit that referenced this pull request Jun 9, 2022
* Push observables:

* Filter docs without _source

(cherry picked from commit 47ffdd8)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 9, 2022
…133992)

* Push observables:

* Filter docs without _source

(cherry picked from commit 47ffdd8)

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.3.0 v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants