Skip to content

feat(legal): scheduled multi-document legal updates - #87

Merged
CropWatchDevelopment merged 1 commit into
masterfrom
develop
Jul 30, 2026
Merged

CropWatchDevelopment merged 1 commit into
masterfrom
develop

Conversation

@CropWatchDevelopment

Copy link
Copy Markdown
Owner

New legal_document_versions table holds published and scheduled versions per document; the current version is the highest one whose effective_at has passed, so a future-dated insert activates the re-accept gate on its own — several documents at once when they share an effective_at. legal_documents stays as the kind registry. API computes effective versions at read time (no cron); response shape unchanged, so the CropWatch accept-terms page needs no changes. Update-Legal.sql is now the scheduling template (auto version numbering, review/cancel queries).

New legal_document_versions table holds published and scheduled versions
per document; the current version is the highest one whose effective_at
has passed, so a future-dated insert activates the re-accept gate on its
own — several documents at once when they share an effective_at.
legal_documents stays as the kind registry. API computes effective
versions at read time (no cron); response shape unchanged, so the
CropWatch accept-terms page needs no changes. Update-Legal.sql is now
the scheduling template (auto version numbering, review/cancel queries).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api Ready Ready Preview Jul 30, 2026 3:05pm

Request Review

@CropWatchDevelopment
CropWatchDevelopment merged commit 42bf528 into master Jul 30, 2026
5 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.

1 participant