feat(migrations): finalize email_send_log — drop error column + enable RLS#38
Conversation
|
Warning Review limit reached
Next review available in: 34 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Updates to Preview Branch (chore/email-send-log-drop-error) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
…e RLS Drops the unused `error` column (Resend send-failure reason; the empty-email failures succeed so it's always null, and the api never writes it) and enables RLS with no policies, matching neighboring internal/service-written tables (error_logs, playcount store) — the api writes via the service role, which bypasses RLS; anon/authenticated have no access to this internal log. Ref: recoupable/chat#1829 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7717170 to
7300ea3
Compare
What
Finalizes the
email_send_logtable:Why
error— it slipped into the create migration (feat(migrations): create email_send_log table #37) but isn't needed for the core observability goal: the empty-email failures we chase succeed withsuccess:true(soerroris always null), real send failures are rare/unobserved, andlogEmailAttemptnever writes it. Trivially re-addable later (nullable, no backfill).error_logs, the playcount store): the api writes via the service role (bypasses RLS);anon/authenticatedhave no access to this internal log.Leaves the agreed 7 columns:
id, created_at, account_id, chat_id, status, resend_id, raw_body.Part of recoupable/chat#1829.
🤖 Generated with Claude Code