feat(cms): add staging collection seed import#542
Draft
Conversation
Extend the gateway-sync trigger to accept optional collectionIds, videoIds, and dryRun parameters for staging/local seed imports. Collection IDs (coverage-style top-level video IDs) are resolved to their child video IDs automatically. Limited imports are additive — no soft-delete of unseen content. A dry-run mode returns the resolved mapping without writing data. Gated behind GATEWAY_SYNC_ENABLE_LIMITED_IMPORT=true env var to prevent accidental production use. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- fix: null-guard Apollo data in sync-keywords to handle gateway errors gracefully - fix: batch SELECTED_VIDEOS_QUERY in 10-ID chunks to avoid gateway complexity limit - fix: include parent collection video in resolvedVideoIds alongside children - docs: add local testing runbook and bug report with verified fixes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Stage gateway-sync publishing and relation handling for clean imports of collection 7_0-nfs01, and update docs to keep warm rerun behavior marked as unresolved.
|
🚅 Deployed to the forge-pr-542 environment in forge
2 services not affected by this PR
|
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
gateway-syncimport path so a clean local import of collection7_0-nfs01publishes the parent video, its 3 children, and related child content in dependency orderResolves #514
Work Loop
ce:plandonece:workdonece:reviewdonece:compounddoneNotes
docs/plans/2026-03-25-001-fix-cms-gateway-sync-video-child-publishing-plan.mddocs/solutions/cms/gateway-sync-local-testing.mddocs/solutions/cms/gateway-sync-limited-import-testing-bugs.md7_0-nfs01succeeds and publishes supporting child contentpnpm --filter cms typecheckpassespnpm --filter cms buildpassesPost-Deploy Monitoring & Validation
[gateway-sync] Publishedgrouped by type during a limited import[gateway-sync] Sync failedand[publishDrafts]warnings for relation-heavy child contentvideo,video-subtitle,video-variant,bible-citation, andvideo-study-question7_0-nfs01