feat(cms): add limited seed import to gateway-sync pipeline#516
Open
feat(cms): add limited seed import to gateway-sync pipeline#516
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>
|
🚅 Deployed to the forge-pr-516 environment in forge
2 services not affected by this PR
|
- 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>
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
POST /gateway-sync/triggerto accept optionalcollectionIds,videoIds, anddryRunparameters for staging/local seed importsresolve-collection-video-ids.tstransformerGATEWAY_SYNC_ENABLE_LIMITED_IMPORT=trueenv varCloses #514
Key Design Decisions
videoVariantspagination_collectedVariantson the selection object, so the video phase fetches once and the variant phase consumescollectionIds + videoIdsper request to prevent near-full importsTesting
pnpm --filter cms typecheck)Post-Deploy Monitoring & Validation
[gateway-sync] Limited import— confirms limited mode activation[gateway-sync] Missing collection IDs— flags bad operator inputcollectionVideoIdsmapping with resolved child IDsGATEWAY_SYNC_ENABLE_LIMITED_IMPORTnot set = limited imports rejected with clear error🤖 Generated with Claude Opus 4.6 (1M context, extended thinking) via Claude Code