fix(slack): remove dead call to __create_holmes_callback in SlackSinkPreview#2027
Merged
arikalon1 merged 1 commit intorobusta-dev:masterfrom Mar 12, 2026
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughRemoved the conditional that appended the Holmes "ask" callback/button block to Slack preview messages; all other preview construction (headers, links, source/description blocks) is unchanged. Changes
Sequence Diagram(s)(omitted) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
arikalon1
approved these changes
Mar 11, 2026
…ender.py Signed-off-by: Nicolas Clavier <nicolas.clavier@bedrockstreaming.com>
6bb5943 to
84cc3f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When using the
SlackSinkPreviewsink, all alerts were falling back to the legacy Slack output format with the following error:Root Cause
The
__create_holmes_callbackmethod was removed in #1826 as part of the Holmes Slack format refactor, which replaced the callback button approach with theget_holmes_blocktext-based prompt. However, the call to__create_holmes_callbackinside__send_finding_to_slack_previewwas not removed, leaving a dangling reference that raised anAttributeErrorat runtime.Fix
Remove the dead call to
self.__create_holmes_callback(finding)and its surrounding condition in__send_finding_to_slack_preview.Testing
SlackSinkPreviewconfigured and verify alerts render correctly without falling back to legacy output.