Skip to content

[7.x] [Security Solution][Exceptions] - Update exception item comments to include id (#73129)#73374

Merged
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-73129
Jul 28, 2020
Merged

[7.x] [Security Solution][Exceptions] - Update exception item comments to include id (#73129)#73374
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-73129

Conversation

@yctercero
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…nclude id (elastic#73129)

## Summary

This PR is somewhat of an intermediary step. Comments on exception list items are denormalized. We initially decided that we would not add `uuid` to comments, but found that it is in fact necessary. This is intermediary in the sense that what we ideally want to have is a dedicated `comments` CRUD route. 

Also just note that I added a callout for when a version conflict occurs (ie: exception item was updated by someone else while a user is editing the same item).

With this PR users are able to:
- Create comments when creating exception list items
- Add new comments on exception item update

Users will currently be blocked from:
- Deleting comments
- Updating comments
- Updating exception item if version conflict is found
@yctercero yctercero added the backport This PR is a backport of another PR label Jul 27, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
securitySolution 7.3MB +2.7KB 7.3MB

page load bundle size

id value diff baseline
lists 269.4KB +441.0B 269.0KB
securitySolution 870.7KB +98.0B 870.6KB
total - +539.0B -

Saved Objects .kibana field count

id value diff baseline
exception-list 38 +1 37
exception-list-agnostic 38 +1 37
total - +2 -

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

@yctercero yctercero merged commit aadbbdd into elastic:7.x Jul 28, 2020
@yctercero yctercero deleted the backport/7.x/pr-73129 branch October 14, 2020 12:00
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