Skip to content

[8.12] [RAM] Fix bug where select all rules bypasses filters (#176962)#177062

Closed
kibanamachine wants to merge 1 commit intoelastic:8.12from
kibanamachine:backport/8.12/pr-176962
Closed

[8.12] [RAM] Fix bug where select all rules bypasses filters (#176962)#177062
kibanamachine wants to merge 1 commit intoelastic:8.12from
kibanamachine:backport/8.12/pr-176962

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.12:

Questions ?

Please refer to the Backport tool documentation

## Summary

Fixes elastic#176867

A bug introduced in elastic#174954
bypassed most filters when using Select All on the Rules List. This was
because the names of the filter properties changed, and no longer
matched what the `useBulkEditSelect` hook was expecting.

Because all of these types were optional, it didn't trigger any type
errors.

This syncs up the type definitions with the new filter store hook, and
adds a functional test to make sure filters are working on bulk actions
when clicking the select all button.

### Checklist

- [x] [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

(cherry picked from commit e136a93)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Feb 15, 2024
@kibanamachine kibanamachine enabled auto-merge (squash) February 15, 2024 18:34
@kibana-ci
Copy link

kibana-ci commented Feb 15, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #27 / Actions and Triggers app Rules list rules list bulk actions should apply filters to bulk actions when using the select all button
  • [job] [logs] FTR Configs #27 / Actions and Triggers app Rules list rules list bulk actions should apply filters to bulk actions when using the select all button
  • [job] [logs] Explore - Security Solution Cypress Tests #4 / url state sets and reads the url state for timeline by id sets and reads the url state for timeline by id

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
triggersActionsUi 1.4MB 1.4MB -13.0B

History

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

cc @Zacqary

@Zacqary
Copy link
Contributor

Zacqary commented Feb 15, 2024

Need to manually backport this, closing and reopening on my own branch

@Zacqary Zacqary closed this Feb 15, 2024
auto-merge was automatically disabled February 15, 2024 22:32

Pull request was closed

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.

3 participants