Skip to content

[Cases][Timeline] Adding multiple-isolated changes#113552

Merged
jonathan-buttner merged 6 commits intoelastic:masterfrom
jonathan-buttner:cases-timeline-multiple-isolated
Oct 6, 2021
Merged

[Cases][Timeline] Adding multiple-isolated changes#113552
jonathan-buttner merged 6 commits intoelastic:masterfrom
jonathan-buttner:cases-timeline-multiple-isolated

Conversation

@jonathan-buttner
Copy link
Contributor

@jonathan-buttner jonathan-buttner commented Sep 30, 2021

This PR implements step 4 for making cases and timeline share capable: https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-step-4

This also adds tests to ensure that the alias match case works appropriately.

@jonathan-buttner jonathan-buttner added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Threat Hunting Security Solution Threat Hunting Team Team:Threat Hunting:Cases labels Sep 30, 2021
Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

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

Code review only, LGTM!

For my future reference: this covers the following object types as outlined in #100489:

cases, cases-comments, cases-configure, cases-connector-mappings, cases-sub-case, cases-user-actions, siem-ui-timeline, siem-ui-timeline-note, siem-ui-timeline-pinned-event

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

Code review only, LGTM!

const theComments = await caseService.getAllCaseComments({
unsecuredSavedObjectsClient,
id,
id: resolvedSavedObject.id,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the case of an alias match the request's id and the resolvedSavedObject.id will be different. We'll want to use the resolvedSavedObject.id instead since that'll be pointing to the changed id.

@jonathan-buttner
Copy link
Contributor Author

@elasticmachine merge upstream

@jonathan-buttner jonathan-buttner marked this pull request as ready for review October 5, 2021 17:22
@jonathan-buttner jonathan-buttner requested review from a team as code owners October 5, 2021 17:22
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-cases (Team:Threat Hunting:Cases)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@jonathan-buttner jonathan-buttner merged commit 4243c57 into elastic:master Oct 6, 2021
@jonathan-buttner jonathan-buttner deleted the cases-timeline-multiple-isolated branch October 6, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants