feat: promote all indexed documents public regardless of validation status#294
Merged
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
BigSimmo
marked this pull request as ready for review
July 5, 2026 18:02
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Batch promotion skips artifact cascade
- Updated promoteBatch to set metadata.public_corpus and null owner_id on all eight artifact tables so batch promotion matches the migration cascade.
You can send follow-ups to the cloud agent here.
Reviewed by Cursor Bugbot for commit 6b47aa1. Configure here.
The batch promoter now mirrors the migration by setting metadata.public_corpus and nulling owner_id on all eight artifact tables, not just documents.
BigSimmo
enabled auto-merge
July 5, 2026 18:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Removes the
clinical_validation_statusgate that kept ~130 unverified indexed documents private. Public access is already keyed onowner_id IS NULL; this change updates promotion tooling and adds a follow-up migration so the full indexed corpus can be made public.Changes
scripts/promote-public-documents-batch.ts— promote any owned indexed document, not onlylocally_reviewed/approved.scripts/promote-public-documents.ts— same candidate filter removal; updated operator guidance.supabase/migrations/20260706120000_promote_remaining_indexed_documents_public.sql— one-shot migration to promote all remaining owned indexed documents and cascadeowner_id = nullto related artifact tables.The earlier migration
20260705220000_promote_locally_reviewed_documents_public.sqlis left as-is (already applied on live).Post-merge rollout
On the linked Supabase project (
sjrfecxgysukkwxsowpy):npm run promote:public-documents:batch # or npx supabase db push --linkedExpected result: all ~2,065 indexed documents public (
owner_id IS NULL); ~130 currently unverified owned docs promoted.Notes
withOwnerReadScope) were already validation-status agnostic — this fixes promotion/data, not route logic.