REPOSITORY CODING · MEDIUM
Queued notifications ignore a later opt-out
Messages queued before an opt-out continue reaching the recipient. Check current preferences at delivery without deleting the backlog or blocking enabled channels.
Incident DebuggingNotification delivery post
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
JavaScript · 50 minute session
- configure replaces a recipient’s enabled channels (email, sms, push) and quiet interval start/end in integer UTC hours 0–23. Equal start/end means no quiet hours.
- Quiet hours include start and exclude end. A start greater than end crosses midnight.
- enqueue accepts a unique message id, recipient, enabled channel and nonempty body. It starts queued with zero attempts.
- deliver requires a queued message, currently enabled channel and a non-quiet hour. Each eligible attempt increments attempts. providerFailed leaves it queued; otherwise it becomes delivered.
- cancel is recipient-only and queued-only. Delivered and cancelled messages cannot be delivered again. inspect reads preferences; message reads a message.
- Every command includes tenant and op. IDs belong to a tenant. Invalid commands return an error without stopping later commands.
- Mutations and their audit records commit together. failAudit rolls back all changes. Read operations do not increment revision.
- An optional request key makes retries idempotent per tenant. Reusing the key with different fields returns request-conflict.
- Use the authenticated workspace API for state across HTTP requests. /run is a disposable fixture. Time and failures are explicit inputs, so tests are repeatable.
MEAN · 50 minute session
- configure replaces a recipient’s enabled channels (email, sms, push) and quiet interval start/end in integer UTC hours 0–23. Equal start/end means no quiet hours.
- Quiet hours include start and exclude end. A start greater than end crosses midnight.
- enqueue accepts a unique message id, recipient, enabled channel and nonempty body. It starts queued with zero attempts.
- deliver requires a queued message, currently enabled channel and a non-quiet hour. Each eligible attempt increments attempts. providerFailed leaves it queued; otherwise it becomes delivered.
- cancel is recipient-only and queued-only. Delivered and cancelled messages cannot be delivered again. inspect reads preferences; message reads a message.
- Every command includes tenant and op. IDs belong to a tenant. Invalid commands return an error without stopping later commands.
- Mutations and their audit records commit together. failAudit rolls back all changes. Read operations do not increment revision.
- An optional request key makes retries idempotent per tenant. Reusing the key with different fields returns request-conflict.
- Use the authenticated workspace API for state across HTTP requests. /run is a disposable fixture. Time and failures are explicit inputs, so tests are repeatable.
MERN · 50 minute session
- configure replaces a recipient’s enabled channels (email, sms, push) and quiet interval start/end in integer UTC hours 0–23. Equal start/end means no quiet hours.
- Quiet hours include start and exclude end. A start greater than end crosses midnight.
- enqueue accepts a unique message id, recipient, enabled channel and nonempty body. It starts queued with zero attempts.
- deliver requires a queued message, currently enabled channel and a non-quiet hour. Each eligible attempt increments attempts. providerFailed leaves it queued; otherwise it becomes delivered.
- cancel is recipient-only and queued-only. Delivered and cancelled messages cannot be delivered again. inspect reads preferences; message reads a message.
- Every command includes tenant and op. IDs belong to a tenant. Invalid commands return an error without stopping later commands.
- Mutations and their audit records commit together. failAudit rolls back all changes. Read operations do not increment revision.
- An optional request key makes retries idempotent per tenant. Reusing the key with different fields returns request-conflict.
- Use the authenticated workspace API for state across HTTP requests. /run is a disposable fixture. Time and failures are explicit inputs, so tests are repeatable.
PERN · 50 minute session
- configure replaces a recipient’s enabled channels (email, sms, push) and quiet interval start/end in integer UTC hours 0–23. Equal start/end means no quiet hours.
- Quiet hours include start and exclude end. A start greater than end crosses midnight.
- enqueue accepts a unique message id, recipient, enabled channel and nonempty body. It starts queued with zero attempts.
- deliver requires a queued message, currently enabled channel and a non-quiet hour. Each eligible attempt increments attempts. providerFailed leaves it queued; otherwise it becomes delivered.
- cancel is recipient-only and queued-only. Delivered and cancelled messages cannot be delivered again. inspect reads preferences; message reads a message.
- Every command includes tenant and op. IDs belong to a tenant. Invalid commands return an error without stopping later commands.
- Mutations and their audit records commit together. failAudit rolls back all changes. Read operations do not increment revision.
- An optional request key makes retries idempotent per tenant. Reusing the key with different fields returns request-conflict.
- Use the authenticated workspace API for state across HTTP requests. /run is a disposable fixture. Time and failures are explicit inputs, so tests are repeatable.