Commit 05324b8
Fix channel_override not working with grouped Slack messages (#2030)
When channel_override uses labels/annotations (e.g. robusta-clusterrel-labels.severity),
grouped messages were broken in two ways:
1. The group key only used group_by attributes (e.g. cluster), so findings
destined for different channels (sev1, sev2, sev3) were incorrectly merged
into a single group.
2. The summary message resolved the channel with empty labels/annotations,
falling back to the default channel instead of the override channel. Thread
replies then went to a different channel than the summary, breaking threading.
Fix: resolve the channel per-finding and include it in the group key when
channel_override is configured, and pass the pre-resolved channel to the
summary message sender.
https://claude.ai/code/session_01L3rB5LufiC9W9hGDgYMTXP
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Avi <97387909+Avi-Robusta@users.noreply.github.com>1 parent bf02470 commit 05324b8
2 files changed
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
71 | 88 | | |
72 | 89 | | |
73 | 90 | | |
| 91 | + | |
74 | 92 | | |
75 | 93 | | |
76 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
| |||
927 | 928 | | |
928 | 929 | | |
929 | 930 | | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
938 | 940 | | |
939 | 941 | | |
940 | 942 | | |
| |||
0 commit comments