Commit 996462a
Bulk operations support
## Bulk operations support `gap_range`
[issue](elastic#220772)
### Bug
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.
### Fix
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 <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>gap_range (elastic#221078)1 parent ca1b312 commit 996462a
File tree
15 files changed
+490
-31
lines changed- oas_docs/output
- x-pack
- solutions/security/plugins/security_solution
- common/api/detection_engine/rule_management/bulk_actions
- docs/openapi
- ess
- serverless
- public/detection_engine
- rule_management_ui/components/rules_table/bulk_actions
- utils
- rule_management/api
- server/lib/detection_engine/rule_management/api/rules/bulk_actions
- test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier
15 files changed
+490
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61483 | 61483 | | |
61484 | 61484 | | |
61485 | 61485 | | |
| 61486 | + | |
| 61487 | + | |
| 61488 | + | |
| 61489 | + | |
| 61490 | + | |
| 61491 | + | |
61486 | 61492 | | |
61487 | 61493 | | |
61488 | 61494 | | |
| |||
61501 | 61507 | | |
61502 | 61508 | | |
61503 | 61509 | | |
| 61510 | + | |
| 61511 | + | |
| 61512 | + | |
| 61513 | + | |
| 61514 | + | |
| 61515 | + | |
61504 | 61516 | | |
61505 | 61517 | | |
61506 | 61518 | | |
| |||
61532 | 61544 | | |
61533 | 61545 | | |
61534 | 61546 | | |
| 61547 | + | |
| 61548 | + | |
| 61549 | + | |
| 61550 | + | |
| 61551 | + | |
| 61552 | + | |
61535 | 61553 | | |
61536 | 61554 | | |
61537 | 61555 | | |
| |||
61624 | 61642 | | |
61625 | 61643 | | |
61626 | 61644 | | |
| 61645 | + | |
| 61646 | + | |
| 61647 | + | |
| 61648 | + | |
| 61649 | + | |
| 61650 | + | |
61627 | 61651 | | |
61628 | 61652 | | |
61629 | 61653 | | |
| |||
61647 | 61671 | | |
61648 | 61672 | | |
61649 | 61673 | | |
| 61674 | + | |
| 61675 | + | |
| 61676 | + | |
| 61677 | + | |
| 61678 | + | |
| 61679 | + | |
61650 | 61680 | | |
61651 | 61681 | | |
61652 | 61682 | | |
| |||
61667 | 61697 | | |
61668 | 61698 | | |
61669 | 61699 | | |
| 61700 | + | |
| 61701 | + | |
| 61702 | + | |
| 61703 | + | |
| 61704 | + | |
| 61705 | + | |
61670 | 61706 | | |
61671 | 61707 | | |
61672 | 61708 | | |
| |||
61685 | 61721 | | |
61686 | 61722 | | |
61687 | 61723 | | |
| 61724 | + | |
| 61725 | + | |
| 61726 | + | |
| 61727 | + | |
| 61728 | + | |
| 61729 | + | |
61688 | 61730 | | |
61689 | 61731 | | |
61690 | 61732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70856 | 70856 | | |
70857 | 70857 | | |
70858 | 70858 | | |
| 70859 | + | |
| 70860 | + | |
| 70861 | + | |
| 70862 | + | |
| 70863 | + | |
| 70864 | + | |
70859 | 70865 | | |
70860 | 70866 | | |
70861 | 70867 | | |
| |||
70874 | 70880 | | |
70875 | 70881 | | |
70876 | 70882 | | |
| 70883 | + | |
| 70884 | + | |
| 70885 | + | |
| 70886 | + | |
| 70887 | + | |
| 70888 | + | |
70877 | 70889 | | |
70878 | 70890 | | |
70879 | 70891 | | |
| |||
70905 | 70917 | | |
70906 | 70918 | | |
70907 | 70919 | | |
| 70920 | + | |
| 70921 | + | |
| 70922 | + | |
| 70923 | + | |
| 70924 | + | |
| 70925 | + | |
70908 | 70926 | | |
70909 | 70927 | | |
70910 | 70928 | | |
| |||
70997 | 71015 | | |
70998 | 71016 | | |
70999 | 71017 | | |
| 71018 | + | |
| 71019 | + | |
| 71020 | + | |
| 71021 | + | |
| 71022 | + | |
| 71023 | + | |
71000 | 71024 | | |
71001 | 71025 | | |
71002 | 71026 | | |
| |||
71020 | 71044 | | |
71021 | 71045 | | |
71022 | 71046 | | |
| 71047 | + | |
| 71048 | + | |
| 71049 | + | |
| 71050 | + | |
| 71051 | + | |
| 71052 | + | |
71023 | 71053 | | |
71024 | 71054 | | |
71025 | 71055 | | |
| |||
71040 | 71070 | | |
71041 | 71071 | | |
71042 | 71072 | | |
| 71073 | + | |
| 71074 | + | |
| 71075 | + | |
| 71076 | + | |
| 71077 | + | |
| 71078 | + | |
71043 | 71079 | | |
71044 | 71080 | | |
71045 | 71081 | | |
| |||
71058 | 71094 | | |
71059 | 71095 | | |
71060 | 71096 | | |
| 71097 | + | |
| 71098 | + | |
| 71099 | + | |
| 71100 | + | |
| 71101 | + | |
| 71102 | + | |
71061 | 71103 | | |
71062 | 71104 | | |
71063 | 71105 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1149 | 1155 | | |
1150 | 1156 | | |
1151 | 1157 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4696 | 4696 | | |
4697 | 4697 | | |
4698 | 4698 | | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
4699 | 4705 | | |
4700 | 4706 | | |
4701 | 4707 | | |
| |||
4716 | 4722 | | |
4717 | 4723 | | |
4718 | 4724 | | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
4719 | 4731 | | |
4720 | 4732 | | |
4721 | 4733 | | |
| |||
4749 | 4761 | | |
4750 | 4762 | | |
4751 | 4763 | | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
4752 | 4770 | | |
4753 | 4771 | | |
4754 | 4772 | | |
| |||
4849 | 4867 | | |
4850 | 4868 | | |
4851 | 4869 | | |
| 4870 | + | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
4852 | 4876 | | |
4853 | 4877 | | |
4854 | 4878 | | |
| |||
4874 | 4898 | | |
4875 | 4899 | | |
4876 | 4900 | | |
| 4901 | + | |
| 4902 | + | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
4877 | 4907 | | |
4878 | 4908 | | |
4879 | 4909 | | |
| |||
4896 | 4926 | | |
4897 | 4927 | | |
4898 | 4928 | | |
| 4929 | + | |
| 4930 | + | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
4899 | 4935 | | |
4900 | 4936 | | |
4901 | 4937 | | |
| |||
4916 | 4952 | | |
4917 | 4953 | | |
4918 | 4954 | | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
4919 | 4961 | | |
4920 | 4962 | | |
4921 | 4963 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4026 | 4026 | | |
4027 | 4027 | | |
4028 | 4028 | | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
4029 | 4035 | | |
4030 | 4036 | | |
4031 | 4037 | | |
| |||
4046 | 4052 | | |
4047 | 4053 | | |
4048 | 4054 | | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
4049 | 4061 | | |
4050 | 4062 | | |
4051 | 4063 | | |
| |||
4079 | 4091 | | |
4080 | 4092 | | |
4081 | 4093 | | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
4082 | 4100 | | |
4083 | 4101 | | |
4084 | 4102 | | |
| |||
4179 | 4197 | | |
4180 | 4198 | | |
4181 | 4199 | | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
4182 | 4206 | | |
4183 | 4207 | | |
4184 | 4208 | | |
| |||
4204 | 4228 | | |
4205 | 4229 | | |
4206 | 4230 | | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
4207 | 4237 | | |
4208 | 4238 | | |
4209 | 4239 | | |
| |||
4226 | 4256 | | |
4227 | 4257 | | |
4228 | 4258 | | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
4229 | 4265 | | |
4230 | 4266 | | |
4231 | 4267 | | |
| |||
4246 | 4282 | | |
4247 | 4283 | | |
4248 | 4284 | | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
4249 | 4291 | | |
4250 | 4292 | | |
4251 | 4293 | | |
| |||
0 commit comments