fix: send subscriber verification in signup service - #2572
Conversation
|
@jiggyjigsj is attempting to deploy a commit to the OpenStatus Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
@claude review |
|
Claude finished @mxkaske's task in 2m 51s —— View job Claude's ReviewTodos:
Solid refactor overall — consolidating the create + verification-send into one server-side transaction closes the original client-round-trip gap, and the router/UI cleanup is consistent (no leftover consumers of the removed On cubic-dev-ai's two findings: #2 (P1, #1 (P2, No other correctness issues found in the diff. One minor note: there's no test exercising the concurrent-request race for issue #1, understandably hard to do reliably against libSQL — not a blocker, just noting the gap given the guard's stated purpose is anti-spam. |
There was a problem hiding this comment.
1 issue found across 6 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/services/src/page-subscriber/expire-verification.ts">
<violation number="1" location="packages/services/src/page-subscriber/expire-verification.ts:33">
P2: A delayed failure from an older verification send can invalidate a newer resend, leaving the user with an unusable link. The compensation needs an attempt/version guard (or a rotated token per resend) before expiring the row.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
|
@mxkaske This should be ready to review. |
bc48542 to
eb3a311
Compare
Summary
Root cause
The status-page UI first created a pending subscriber, then relied on a second client-side tRPC mutation to send the verification email. If that follow-up request did not run or failed, the subscriber remained pending without receiving a link, and the pending guard blocked another attempt.
Validation
pnpm --filter @openstatus/services checkoxlintpnpm verifyThe repository-wide verifier still fails on pre-existing Deno type errors involving
Bufferinapps/workflows/src/cron/checker.tsandpackages/api; the affected service package type-checks cleanly.