feat: add repository projection synchronization
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 1m9s
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 1m9s
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a028f0-a42f-7582-89a8-ebaad7343834
This commit is contained in:
parent
d3258a6ba0
commit
280da08455
7 changed files with 317 additions and 2 deletions
|
|
@ -52,6 +52,21 @@ operation.
|
|||
|
||||
## Import State Hub history
|
||||
|
||||
Synchronize the minimum repository identity/path projection first. This command
|
||||
does not call an ingest endpoint or create an SBOM snapshot:
|
||||
|
||||
```bash
|
||||
uv run python scripts/sync_repository_projections.py \
|
||||
--source-url http://127.0.0.1:8000 \
|
||||
--target-url http://127.0.0.1:8010 \
|
||||
--host-id bnt-lap001 \
|
||||
--dry-run
|
||||
```
|
||||
|
||||
Remove `--dry-run` only after the target is deployed. The apply path upserts all
|
||||
active and inactive records, then reads them back and fails on a missing or
|
||||
mismatched active/path projection. Extra target rows are reported but retained.
|
||||
|
||||
Run a read-only preview first:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue