Skip to content

Conversation

@yctercero
Copy link
Contributor

Backports the following commits to 7.x:

…ting lists plugin useApi hook (elastic#92348)

Doing a quick refactor to help with elastic#90634 . While working on elastic#90634 found that I would introduce a circular dependency if I didn't refactor the hook used by the exception builder component to make use of the existing useApi hook in the lists plugin.

elastic#90634 adds temporary ids to item entries to mitigate some React key requirements and the logic to remove/add these id's isn't at the boundary but in the hooks (so as not to pollute the data for everyone wanting to use the api.

An upside is that it removed some of the looping and seemed to speed things up a bit. I briefly considered adding the bulk SO endpoints for exception items, but they are still experimental.
@yctercero yctercero added the backport This PR is a backport of another PR label Feb 23, 2021
@yctercero yctercero enabled auto-merge (squash) February 23, 2021 22:57
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 7.7MB 7.7MB -402.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
lists 143.2KB 143.5KB +370.0B

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

@yctercero yctercero merged commit fbc142f into elastic:7.x Feb 24, 2021
@yctercero yctercero deleted the backport/7.x/pr-92348 branch October 13, 2021 06:28
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