docs: correct Preflight TTL mechanism in ADR 002#2477
Conversation
withRecordExpiry is DynamoDB-era and postgrestIgnore in v3 - no TTL column exists on the preflights table. Expiry is via ON DELETE CASCADE on async_job_id. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Hey @GeezerPelletier,
Strengths
- Corrects ADR 002 to reflect the actual PostgreSQL implementation rather than leaving DynamoDB-era assumptions in the design record (
docs/decisions/002-preflight-api-rest-redesign.md:305-309) - Clear explanation of the real expiry mechanism (ON DELETE CASCADE) and why
withRecordExpiryis a no-op in the v3 layer - Well-scoped companion PR that keeps documentation in sync with the data-service and shared library changes
Assessment
Ready to merge? Yes
Reasoning: This is a factual correction to an ADR, aligning the documented TTL mechanism with the actual PostgreSQL implementation. The change is accurate, well-explained, and ships alongside the companion PRs that established the correct behavior. CI is green.
Skill: pr-review | Model: us.anthropic.claude-opus-4-6-v1[1m] | Duration: 1m 22s | Cost: $0.50 | Commit: 269e96bac61d0060faa803117d8e8c22035cbd90
If this code review was useful, please react with 👍. Otherwise, react with 👎.
|
This PR will trigger no release when merged. |
Resolves conflict between ADR-002 Data Model section extraction (our branch) and the TTL correction landed in main (#2477). ADR-002 keeps the short reference to ADR-003; the ON DELETE CASCADE expiry correction is applied directly into ADR-003 where the entity design now lives. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
🎉 This PR is included in version 1.513.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Corrects the TTL/expiry description in ADR 002 to reflect the actual implementation.
withRecordExpiryis a DynamoDB-era SchemaBuilder helper markedpostgrestIgnorein the v3 PostgreSQL layer - it never writes to the database. Thepreflightstable has norecord_expires_atcolumn. Cleanup is handled byON DELETE CASCADEonasync_job_id.Companion to:
Generated with Claude Code