Skip to content

[8.19] Bulk operations support gap_range (#221078)#223397

Merged
nkhristinin merged 3 commits intoelastic:8.19from
nkhristinin:backport/8.19/pr-221078
Jun 18, 2025
Merged

[8.19] Bulk operations support gap_range (#221078)#223397
nkhristinin merged 3 commits intoelastic:8.19from
nkhristinin:backport/8.19/pr-221078

Conversation

@nkhristinin
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

[issue](elastic#220772)
If a user has 100 rules in total and 20 of them have gaps:
- They click "Show only with gaps" — the UI shows just those 20.
- They hit "Select all" — it says 20 rules are selected.
- But when they perform a bulk action, it ends up applying to **all 100
rules**, not just the 20 with gaps.

This happens because the bulk action uses a query that doesn't include
gap info, so it ends up targeting everything.
We now support passing `gaps_range_start` and `gaps_range_end` along
with the bulk action.

On the API side:
- If a query is sent, we use the gap range to find the actual list of
rule IDs with gaps.
- Then we apply the bulk action only to those rules.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4703f76)
@nkhristinin nkhristinin added the backport This PR is a backport of another PR label Jun 11, 2025
@nkhristinin nkhristinin enabled auto-merge (squash) June 11, 2025 12:24
@nkhristinin
Copy link
Contributor Author

@elasticmachine merge upstream

@nkhristinin
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

There are no new commits on the base branch.

@nkhristinin
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
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 9.4MB 9.4MB +386.0B

History

@nkhristinin nkhristinin merged commit 82c594d into elastic:8.19 Jun 18, 2025
8 checks passed
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