Skip to content

Revert "Summoning heavenly logging to smite mismatches on priority assignment" - #3053

Merged
jimleroyer merged 1 commit into
mainfrom
revert-3046-debug/high-priority-not-honored
Sep 14, 2026
Merged

jimleroyer merged 1 commit into
mainfrom
revert-3046-debug/high-priority-not-honored

Conversation

@jimleroyer

Copy link
Copy Markdown
Member

Reverts #3046

We have an issue with this one as we deployed to production and likely took code paths it did not in staging env.

@ben851 ben851 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gogogogogogo

Comment on lines +499 to +503
notification.queue_name = choose_queue(
notification=notification,
research_mode=service.research_mode,
priority_queue=get_delivery_queue_for_template(template),
)
@jimleroyer
jimleroyer enabled auto-merge (squash) September 14, 2026 14:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical unreachable branch leaves the queue/save path dead in post_notifications.py.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Reverts PR #3046 to restore prior notification routing and simulated-notification behavior after production issues.

Changes:

  • Removes temporary routing diagnostics.
  • Restores queue selection and simulated-notification handling.
  • Adds rate-limit persistence assertions.
File summaries
File Summary
tests/app/v2/notifications/test_post_notifications.py Verifies rate-limited notifications are not saved.
app/v2/notifications/post_notifications.py Restores simulated-notification handling; contains an unreachable queue/save branch.
app/service/send_notification.py Removes temporary routing diagnostics.
app/notifications/rest.py Reverts logging and variable naming changes.
app/notifications/process_notifications.py Restores queue-selection logic and removes diagnostics.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +498 to +507
if not simulated:
notification.queue_name = choose_queue(
notification=notification,
research_mode=service.research_mode,
priority_queue=get_delivery_queue_for_template(template),
)
db_save_and_send_notification(notification)

else:
current_app.logger.debug("POST simulated notification for id: {}".format(notification.id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants