Commit 837059b
authored
[Security Solution] clean unused types, export components and add many unit tests (elastic#217100)
## Summary
This code change was originally part of [a bigger
PR](elastic#216744) related to the AI for
SOC effort. I decided to split the work for 2 reasons:
- less files to review, less teams impacted
- this current PR will easily be backported to `8.x` while the AI for
SOC is only targeting `9.1`
This PR makes only a few small changes:
- remove unused types
- export a few components/functions outside of the `alerts_table` folder
to make them reusable within the new AI for SOC alert summary page (see
PR linked above)
- add a lot of unit tests to everything, especially the now exported
components/functions
#### UI remains unchanged:




### Checklist
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [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
Will unblock elastic/security-team#119731 parent 2ed4266 commit 837059b
13 files changed
Lines changed: 343 additions & 508 deletions
File tree
- x-pack/solutions
- observability/packages/kbn-alerts-grouping/src/mocks
- security/plugins/security_solution/public/detections/components/alerts_table
- grouping_settings
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 82 | | |
88 | 83 | | |
89 | 84 | | |
| |||
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 113 | | |
122 | 114 | | |
123 | 115 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
| |||
Lines changed: 0 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
| |||
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 182 | | |
189 | 183 | | |
190 | 184 | | |
| |||
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 230 | | |
240 | 231 | | |
241 | 232 | | |
| |||
284 | 275 | | |
285 | 276 | | |
286 | 277 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 278 | | |
291 | 279 | | |
292 | 280 | | |
| |||
335 | 323 | | |
336 | 324 | | |
337 | 325 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | 326 | | |
342 | 327 | | |
343 | 328 | | |
| |||
386 | 371 | | |
387 | 372 | | |
388 | 373 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 374 | | |
393 | 375 | | |
394 | 376 | | |
| |||
437 | 419 | | |
438 | 420 | | |
439 | 421 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | 422 | | |
444 | 423 | | |
445 | 424 | | |
| |||
488 | 467 | | |
489 | 468 | | |
490 | 469 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | 470 | | |
495 | 471 | | |
496 | 472 | | |
| |||
539 | 515 | | |
540 | 516 | | |
541 | 517 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | 518 | | |
546 | 519 | | |
547 | 520 | | |
| |||
590 | 563 | | |
591 | 564 | | |
592 | 565 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 566 | | |
597 | 567 | | |
598 | 568 | | |
| |||
641 | 611 | | |
642 | 612 | | |
643 | 613 | | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | 614 | | |
648 | 615 | | |
649 | 616 | | |
| |||
692 | 659 | | |
693 | 660 | | |
694 | 661 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | 662 | | |
699 | 663 | | |
700 | 664 | | |
| |||
743 | 707 | | |
744 | 708 | | |
745 | 709 | | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | 710 | | |
750 | 711 | | |
751 | 712 | | |
| |||
794 | 755 | | |
795 | 756 | | |
796 | 757 | | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | 758 | | |
801 | 759 | | |
802 | 760 | | |
| |||
845 | 803 | | |
846 | 804 | | |
847 | 805 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | 806 | | |
852 | 807 | | |
853 | 808 | | |
| |||
896 | 851 | | |
897 | 852 | | |
898 | 853 | | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | 854 | | |
903 | 855 | | |
904 | 856 | | |
| |||
947 | 899 | | |
948 | 900 | | |
949 | 901 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | 902 | | |
954 | 903 | | |
955 | 904 | | |
| |||
998 | 947 | | |
999 | 948 | | |
1000 | 949 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | 950 | | |
1005 | 951 | | |
1006 | 952 | | |
| |||
1049 | 995 | | |
1050 | 996 | | |
1051 | 997 | | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | 998 | | |
1056 | 999 | | |
1057 | 1000 | | |
| |||
1100 | 1043 | | |
1101 | 1044 | | |
1102 | 1045 | | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | 1046 | | |
1107 | 1047 | | |
1108 | 1048 | | |
| |||
1151 | 1091 | | |
1152 | 1092 | | |
1153 | 1093 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | 1094 | | |
1158 | 1095 | | |
1159 | 1096 | | |
| |||
1202 | 1139 | | |
1203 | 1140 | | |
1204 | 1141 | | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | 1142 | | |
1209 | 1143 | | |
1210 | 1144 | | |
| |||
1253 | 1187 | | |
1254 | 1188 | | |
1255 | 1189 | | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | 1190 | | |
1260 | 1191 | | |
1261 | 1192 | | |
| |||
1304 | 1235 | | |
1305 | 1236 | | |
1306 | 1237 | | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | 1238 | | |
1311 | 1239 | | |
1312 | 1240 | | |
| |||
1355 | 1283 | | |
1356 | 1284 | | |
1357 | 1285 | | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | 1286 | | |
1362 | 1287 | | |
1363 | 1288 | | |
| |||
0 commit comments