Repository navigation
Fix CFP Slack notification for proposals without tags - #4874
Merged
Merged
Conversation
The CFP form no longer collects tags, so new proposals have none and the Tags field was sent to Slack as a plain_text object with empty text. Slack requires text objects to have at least 1 character, so the message is rejected and slack.send_message raises SlackIncomingWebhookError. Only add the Tags field when there are tags, and show the proposal's topic when it has one.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
This PR stops the CFP Slack notification from sending an empty Tags field, which Slack rejects. It also adds a Topic field and parametrizes the test. No issues found. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4874 +/- ##
=======================================
Coverage 92.61% 92.62%
=======================================
Files 360 360
Lines 10959 10967 +8
Branches 953 956 +3
=======================================
+ Hits 10150 10158 +8
Misses 684 684
Partials 125 125 🚀 New features to boost your workflow:
|
This branch had an error being deployed
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.
What
Since #4873 the CFP form no longer collects tags, so new proposals have none.
notify_new_cfp_submissionstill always sent a Tags field, which became{"type": "plain_text", "text": ""}.Slack requires a text object's
textto be at least 1 character (text object reference). So Slack rejects the message, andslack.send_messageraisesSlackIncomingWebhookError. #4873 was deployed today, which is when this path became reachable.This cause is inferred from the code and the Slack docs. I haven't seen the production traceback.
Changes
fieldskey is omitted.test_handle_new_cfp_submissionis parametrized over: no topic and no tags, topic only, and topic plus tags. It asserts the exact fields sent.test_tasks.pyareruff formatonly. That file had never been formatted, and the pre-commit hook rejects the commit without them.ToDo