Skip to content

Endpoint for batch rule unsubscription#518

Merged
bracyw merged 8 commits intodevelopfrom
498-endpoint-for-batch-rule-unsubscription
Feb 24, 2026
Merged

Endpoint for batch rule unsubscription#518
bracyw merged 8 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
@bracyw bracyw requested review from suryatho and removed request for suryatho February 17, 2026 01:48
@bracyw bracyw requested a review from suryatho February 23, 2026 20:56
@bracyw bracyw merged commit 83dad7c into develop Feb 24, 2026
4 checks passed
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

2 participants