gendesign/tradein-mvp/backend
bot-backend 1917b6dbf7 feat(tradein): add data_quality flag to /sales-vs-listings (#721)
ADR variant 3 (human-decided): house-level ДКП↔listing join is physically
impossible (deals carry only a street centroid). Instead of null-silence at
linkage=0, expose an honest enum so the frontend can tell 'no house linkage'
(street_only) from 'no data' (no_data) from 'linked' (house_linked).

- SalesVsListingsResponse: new required field data_quality.
- _empty() → 'no_data'; main return → 'house_linked' if deals_with_listings>0
  else 'street_only' (main return guarded by 'if not rows' → total_deals>0).

Does not touch SQL linkage / cadastre / geo ingest (out of scope per ADR).

Refs #721
2026-05-30 16:18:01 +03:00
..
app feat(tradein): add data_quality flag to /sales-vs-listings (#721) 2026-05-30 16:18:01 +03:00
data/sql feat(tradein): white-label branded page for client «Практика» (#657) (#672) 2026-05-29 16:09:23 +00:00
scripts feat(backtest): per-rooms asking→sold correction block (#648 S1) (#650) 2026-05-29 13:11:55 +00:00
tests fix(tradein): coarse-geo downgrade no longer shielded by Tier C anchor (#693) (#720) 2026-05-30 12:34:11 +00:00
.dockerignore feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
Dockerfile feat(tradein): persistent infra для backfill scripts (PR F) (#592) 2026-05-27 06:59:54 +00:00
pyproject.toml feat(rbac): role-based access control via X-Authenticated-User middleware (#585) 2026-05-26 06:18:40 +00:00