Commit graph

5 commits

Author SHA1 Message Date
lekss361
a5bb79bc59 fix(tradein): run same-building anchor without radius analogs (#691)
На проде геокод часто отдаёт lat/lon=None → ST_DWithin не находит радиусные
аналоги → median_price=0, и same-building якорь скипался: его гейт требовал
listings_clean (непустой радиус) + median_price>0. При этом комплы того же
дома реально есть — _fetch_anchor_comps резолвит дом по payload.address без
геокода (Ткачёва 13 → «улица Ткачей, 13», 27 комплов; Сакко 99).

Гейт ослаблен до resolved-таргета: area_m2 + (payload.address|geo.full_address),
независимо от радиусных аналогов. Новый гейт — супермножество старого (при
непустом радиусе адрес всегда есть), так что ранее-якорившиеся кейсы не
меняются. Если комплов реально нет — _compute_same_building_anchor вернёт None
и мутации median/range не будет (идентично insufficient-пути).

Тесты: anchor срабатывает при пустом радиусе (median>0); контроль — без комплов
и без радиуса median остаётся 0 (не фабрикуем число).

Closes #691
2026-05-30 11:25:59 +03:00
6fac54642a fix(tradein): distinct asking median vs expected-sold price (no double-discount) (#682)
All checks were successful
Deploy Trade-In / changes (push) Successful in 4s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 22s
Deploy Trade-In / build-backend (push) Successful in 39s
Deploy Trade-In / deploy (push) Successful in 32s
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-30 06:35:46 +00:00
3361e434d4 feat(tradein): refine same-building anchor for within-building heterogeneity (#681)
All checks were successful
Deploy Trade-In / changes (push) Successful in 4s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 22s
Deploy Trade-In / build-backend (push) Successful in 41s
Deploy Trade-In / deploy (push) Successful in 33s
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-30 05:49:46 +00:00
b5c26d2723 fix(tradein): harden same-building anchor address normalizer for prod formats (#677) (#679)
All checks were successful
Deploy Trade-In / changes (push) Successful in 4s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 22s
Deploy Trade-In / build-backend (push) Successful in 40s
Deploy Trade-In / deploy (push) Successful in 33s
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-29 22:21:29 +00:00
03a3296332 feat(tradein): same-building anchor estimator (#651/#652 v2) behind flag (#677)
Some checks failed
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Failing after 5s
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / deploy (push) Has been skipped
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-29 21:01:21 +00:00