gendesign/backend/app/services
Light1YT dfae54384e fix(domrf): backfill kn obj_class via aiDescription + older snapshots (#572)
kn-API /kn/object endpoint never populates objClass (0/1516 objects confirmed
in bug-22a audit). Parser _extract_obj_class_from_ai() worked but lacked the
"типов" pattern, missing "типового класса"/"типовой серии" in 131+ objects.
The 2026-05-24 sweep was also truncated (1 object in raw payload) leaving 620
new rows with no aiDescription to extract from.

Fix:
- Add (r"типов", "Типовой") to _OBJ_CLASS_PATTERNS in domrf_kn.py; aligns with
  the "Типовой" value that domrf_catalog.py (SSR scraper) already sets from pages.
- Migration 120: three-pass backfill covering all snapshots:
  Pass 1: aiDescription from all stored raw payloads with extended pattern
  Pass 2: propagate obj_class forward from most recent older snapshot (covers
          broken 2026-05-24 sweep — 185 objects)
  Pass 3: objective_complex_mapping → objective_lots modal class (~14 objects)
  Projects 50.2% → 71.2% coverage (3819→5418/7614 rows); meets ≥70% acceptance.
2026-05-28 18:48:31 +05:00
..
cadastre fix(#265 review): CRS 3857→4326 + stable zone_id hash + rename 102 + tx comment 2026-05-17 10:45:52 +03:00
etl feat(etl): fuzzy matcher v2 — pruned threshold 0.85→0.80 for objective mapping coverage 2026-05-17 16:28:20 +03:00
exporters feat(sf-b7): GET /parcels/{cad}/snapshot.pdf — 1-page WeasyPrint export (#334) 2026-05-17 21:11:03 +00:00
generative deploy.yml: sync compose+Caddyfile from git, reload caddy after up 2026-04-26 13:31:26 +03:00
photos fix ui lag 2026-04-27 20:26:55 +03:00
scrapers fix(domrf): backfill kn obj_class via aiDescription + older snapshots (#572) 2026-05-28 18:48:31 +05:00
site_finder feat(sf-b6): GET /parcels/{cad}/poi-score — weighted top-7 (#333) 2026-05-17 21:11:25 +00:00
__init__.py init 2026-04-25 13:45:19 +03:00
analytics_queries.py fix(22k): quartirography — use f.flat_type not f.type (column doesn't exist) (#312) 2026-05-17 16:09:00 +00:00
analytics_refresh.py fix(scrape): SQLAlchemy text() парсил ':00:' regex как named-param 2026-04-30 23:16:11 +03:00
job_settings.py fix(cadastre,nspd_sync): SQL syntax bugs surfaced by ekb_full v2 (#186) 2026-05-15 19:18:43 +03:00
objective_etl.py fix(worker): port objective_etl from psycopg2 → psycopg v3 2026-05-11 12:07:57 +03:00
objective_sync_config.py feat(objective): full sync pipeline + dynamic admin config 2026-05-10 19:54:15 +03:00