Skip to content

Endpoint for batch rule unsubscription#518

Open
bracyw wants to merge 4 commits intodevelopfrom
498-endpoint-for-batch-rule-unsubscription
Open

Endpoint for batch rule unsubscription#518
bracyw wants to merge 4 commits intodevelopfrom
498-endpoint-for-batch-rule-unsubscription

Conversation

@bracyw
Copy link
Collaborator

@bracyw bracyw commented Feb 16, 2026

Changes

Added POST /rules/unsubscribe endpoint for batch rule unsubscription. Takes rule_ids and client_id in request body.

Implementation removes subscriptions while keeping rules available for future re-subscription. O(n) time complexity as specified.

Test Cases

  • Success case with partial unsubscription (rule remains if other clients subscribed)
  • Orphaned rules remain available (not deleted)
  • Orphaned rule resubscription
  • Nonexistent rule handling (no-op)
  • Empty list edge case

All tests pass.

Checklist

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Remove any non-applicable sections of this template
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (see below)

Closes #498

@bracyw bracyw self-assigned this Feb 17, 2026
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.

Endpoint for batch rule unsubscription

1 participant