gendesign/backend/app/services/cadastre
lekss361 d445240e6f fix(cadastre,nspd_sync): SQL syntax bugs surfaced by ekb_full v2
Three distinct SQL syntax errors caught from worker logs:

1. **upsert_zouit** (bulk_harvest.py:940) — trailing comma after 4326
   in ST_Transform(..., 3857), 4326,) → 'syntax error at or near ")"'.
   Hit on 8+ quarters in 0108 block (66:41:0108055/61/69/77 etc).
   Likely introduced by ruff-format auto-comma on closing paren.

2. **nspd_sync** (nspd_sync.py:120) — `:fetched_at_utc::timestamptz`
   psycopg double-colon trap → 'syntax error at or near ":"'.
   Crashed legacy on-demand harvest_quarter called from analyze.

3. **job_settings** (job_settings.py:224) — `:extra_config::jsonb`
   same double-colon trap in admin settings UPDATE.

All converted to CAST(:x AS type) pattern (psycopg v3 safe).

40 tests still passing.
2026-05-15 19:13:10 +03:00
..
__init__.py feat(cadastre): bulk_harvest worker + grid-walker + admin API (#168 PR3/5) (#171) 2026-05-15 13:31:32 +03:00
bulk_harvest.py fix(cadastre,nspd_sync): SQL syntax bugs surfaced by ekb_full v2 2026-05-15 19:13:10 +03:00
grid_geometry.py fix(cadastre): skip grid-walk for broken quarter geometries (#168) (#179) 2026-05-15 16:25:06 +03:00