Skip to content

[7.11] [Security Solution][Detections] Pre-refactoring for the rule management table (#91302)#92585

Closed
banderror wants to merge 1 commit intoelastic:7.11from
banderror:backport/7.11/pr-91302
Closed

[7.11] [Security Solution][Detections] Pre-refactoring for the rule management table (#91302)#92585
banderror wants to merge 1 commit intoelastic:7.11from
banderror:backport/7.11/pr-91302

Conversation

@banderror
Copy link
Copy Markdown
Contributor

@banderror banderror commented Feb 24, 2021

Backports the following commits to 7.11:

This PR depends on #92601

…nt table (elastic#91302)

**Related to:** elastic#89877

## Summary

This is based on elastic#89877 and the kind of pre-refactoring that has been done there.

Mainly this:

- consolidates application logic in a single place (moves the reducer and the side effects close to each other, etc)
- removes some of the redundant state, leverages the reducer as the source of truth for state
- makes it easier to dispatch events, removes some of the noise

While this refactoring is a totally unfinished work, and might look not good enough (or at all), still I'd like to merge it because of the logic consolidation. I'm going to finalize the refactoring later when I start implementing new filters and other table UX improvements. So the code is going to become better and maybe even quite different from what it is right now. (Btw because of that, I'm not adding or removing any tests here because this is an intermediate kind of state of the code).

### Checklist

- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

# Conflicts:
#	x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/rules_tables.tsx
@banderror banderror added the backport This PR is a backport of another PR label Feb 24, 2021
@banderror banderror enabled auto-merge (squash) February 24, 2021 10:43
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Feb 24, 2021

💔 Build Failed

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 2174 2177 +3

Async chunks

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

id before after diff
securitySolution 8.5MB 8.5MB +4.5KB

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

@banderror
Copy link
Copy Markdown
Contributor Author

On hold for now.

@banderror banderror disabled auto-merge February 24, 2021 11:47
@banderror
Copy link
Copy Markdown
Contributor Author

Backport rejected

@banderror banderror closed this Feb 24, 2021
@banderror banderror deleted the backport/7.11/pr-91302 branch February 24, 2021 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