gendesign/backend/app/services
Light1YT e961ea9435 feat(domrf): persist domrf_kn_objects.free_flats (#950 PR A)
Parse freeFlatsInfo.numberFlats (currently-listed flat count) from the
kn-API payload into a new nullable free_flats INT, mirroring price_min_rub
(extraction via _to_int, UPSERT column/bind, ON CONFLICT overwrite). _to_int
rejects bool, preserves 0, truncates float, and is overflow-safe.

Migration 124 adds the column + COMMENT and backfills historical rows
deterministically from the stored raw payload (domrf_raw_endpoints, section
kn_api) without re-scraping — same jsonb_array_elements pattern already
proven on prod in migration 121, plus a {1,9}/{1,18} digit-cap so a stray
numeric string can never overflow int4/bigint at the deploy gate.

Unblocks object-level Layer2 (Site Finder v2 EPIC 6): hidden = flat_count
(total PD) − free_flats (listed now).
2026-06-03 01:05:05 +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 feat(domrf): persist domrf_kn_objects.free_flats (#950 PR A) 2026-06-03 01:05:05 +05:00
site_finder feat(site-finder): per-competitor relevance_weight (#949 PR B) (#1000) 2026-06-02 19:45:38 +00:00
__init__.py init 2026-04-25 13:45:19 +03:00
analytics_queries.py fix(tradein): per-bucket velocity formula + realistic срок продажи (#574) (#631) 2026-05-28 15:35:16 +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