Commit cf77916
committed
fix: scope large-batch dismiss by rule, not just object (PRO-1264)
dismiss_issue()'s largeBatch path selected and updated every row
matching only siteid+object, so a global/large-batch dismiss on one
rule violation also silently dismissed unrelated rule violations that
happened to share the same object. Fetch the representative issue's
rule alongside its object and filter the batch query by both, matching
the scoping the pro plugin's global-ignore lookup already uses.
Also fixes two existing largeBatch tests whose fixtures used different
rules per row within a single "batch" object — that setup encoded the
same assumption behind the bug, so those rows would no longer be
recognized as belonging to the same batch under the corrected query.1 parent c8b986a commit cf77916
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1230 | 1230 | | |
1231 | 1231 | | |
1232 | 1232 | | |
1233 | | - | |
| 1233 | + | |
1234 | 1234 | | |
1235 | | - | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1236 | 1238 | | |
1237 | 1239 | | |
1238 | 1240 | | |
| |||
1247 | 1249 | | |
1248 | 1250 | | |
1249 | 1251 | | |
1250 | | - | |
| 1252 | + | |
1251 | 1253 | | |
1252 | 1254 | | |
1253 | | - | |
| 1255 | + | |
| 1256 | + | |
1254 | 1257 | | |
1255 | 1258 | | |
1256 | 1259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
933 | 934 | | |
934 | 935 | | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
938 | 939 | | |
939 | | - | |
| 940 | + | |
940 | 941 | | |
941 | 942 | | |
942 | 943 | | |
| |||
955 | 956 | | |
956 | 957 | | |
957 | 958 | | |
958 | | - | |
| 959 | + | |
959 | 960 | | |
960 | 961 | | |
961 | 962 | | |
| |||
0 commit comments