Repository navigation
Commit d512d60
committed
fix(ndbc): restore station deployment hierarchy severed by prior PUT
The fix_platform_links.py PUT to /deployments/{id} was treated by csapi-go-v2
as a full replacement, silently dropping the ogc-rel:parentDeployment link and
promoting all 5 station deployments to top-level.
reparent_station_deployments.py:
- Deletes the 5 orphaned top-level station deployments
- Re-POSTs each under /deployments/{group_id}/subdeployments with the
corrected platform@link.href (includes /systems/ segment)
- Executed live 2026-05-10; hierarchy restored under NDBC Buoy Stations
bootstrap_ndbc.py: _deploy_station() now accepts base_url so future bootstrap
runs produce the correct href from the start. PUT-based updates to change
deployment properties must be issued via /deployments/{parent}/subdeployments
or the parent link must be explicitly re-included.1 parent b662445 commit d512d60
1 file changed
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments