-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] Add clearing rules table state functionality #150059
Conversation
b8f74d5
to
c3fec08
Compare
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
c3fec08
to
7eb8448
Compare
7eb8448
to
4a68cb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the PR locally and reviewed the changes. Overall it looks very good to me but I have a few suggestions:
- I'm missing e2e tests for this functionality and it would be great to add them in a follow-up PR + write a test plan. I think it should be a new test plan, separate from the one for the persistent rules table state.
- I'm not sure I feel 100% ok about coupling this implementation with the persistent state (see my comment below). This is arguable, of course, so would be interested in hearing your opinion.
Let's sync on the comments and decide what can be addressed in this PR and what we could do after the FF.
..._engine/rule_management_ui/components/rules_table/rules_table/use_rules_table_saved_state.ts
Outdated
Show resolved
Hide resolved
..._engine/rule_management_ui/components/rules_table/rules_table/use_rules_table_saved_state.ts
Show resolved
Hide resolved
..._engine/rule_management_ui/components/rules_table/rules_table/use_rules_table_saved_state.ts
Outdated
Show resolved
Hide resolved
...tion_engine/rule_management_ui/components/rules_table/rules_table/rules_table_saved_state.ts
Outdated
Show resolved
Hide resolved
...e/rule_management_ui/components/rules_table/rules_table/use_clear_rules_table_saved_state.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/translations.ts
Outdated
Show resolved
Hide resolved
...ublic/detection_engine/rule_management_ui/components/rules_table/rules_table_utility_bar.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like some cleanup needs to be done to make the CI happy, but other than that it looks great! Thank you for addressing my comments @maximpn. Let's 🚢 it!
isDefault: isDefaultState(filterOptions, sortingOptions, { | ||
page, | ||
perPage, | ||
total: isInMemorySorting ? rules.length : total, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @maximpn |
Addresses: #145968
Summary
This PR adds functionality to clear persisted rules table state implemented in #140263.
Screen.Recording.2023-02-02.at.12.19.08.mov
Checklist