gendesign/backend/app
lekss361 2dd21f68b3 fix(api): /parcels/by-bbox — derive area_m2 via ST_Area + drop missing land_category
P0 prod 500 (GlitchTip backend, deploy #135+ on main): endpoint queried
cad_parcels.area_m2 and cad_parcels.land_category, but the table only has
(cad_num, geom). PR #336 (SF-B1) shipped with wrong column assumption.

Repro:
  curl 'https://gendsgn.ru/api/v1/parcels/by-bbox?min_lat=...&min_lon=...' -> 500
  ProgrammingError: column p.area_m2 does not exist

Fix: compute area from geometry via ST_Area(p.geom::geography) (meter accuracy
on a geography cast), return NULL::text for land_category until EGRN enrichment
is wired (tracking: B5 EGRN contract follow-up).

Verified inline through postgres MCP: SQL returns expected rows
(66:41:0001001:18 area 2945931 m^2, etc.) on production schema.
2026-05-18 02:06:08 +03:00
..
api fix(api): /parcels/by-bbox — derive area_m2 via ST_Area + drop missing land_category 2026-05-18 02:06:08 +03:00
core fix(infra): wire GlitchTip DSNs (build-arg + env_file) + reject sentry.io promote 2026-05-16 21:48:28 +03:00
models feat(jobs): centralized job_settings API + DB-driven beat schedule 2026-05-11 15:38:13 +03:00
observability feat(backend): sentry-sdk init для FastAPI + Celery (#204 backend) (#207) 2026-05-16 15:09:16 +00:00
schemas feat(sf-b1): GET /parcels/by-bbox — map entry endpoint + parcel_user_status table (#336) 2026-05-17 21:25:48 +00:00
scrapers Merge pull request 'feat(#263 sub-A): cad_* overlay schemas + cadastre territorial_zones (ПЗЗ)' (#265) from feat/263-sub-a-cad-nspd-overlay-schemas-and-pzz into main 2026-05-17 07:50:08 +00:00
services fix(22d): commit outer transaction in scrape_catalog_objects orchestrator 2026-05-18 01:10:06 +03:00
templates feat(sf-b7): GET /parcels/{cad}/snapshot.pdf — 1-page WeasyPrint export (#334) 2026-05-17 21:11:03 +00:00
workers fix(22d): register scrape_kn_catalog_objects in celery include list (#339) 2026-05-17 21:54:13 +00:00
__init__.py init 2026-04-25 13:45:19 +03:00
main.py feat(sf-b4): GET /landing/stats — 5 KPI + paradox for landing page hero (#331) 2026-05-17 21:47:10 +00:00