feat(tradein): Phase 2-3 of #582 — Yandex backfill + canonical audit #591
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#591
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-house-coords-backfill"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Builds on Phase 1 audit infra (PR #583). Forward-geocode 4141 houses без coords + reverse audit 4452 already-geocoded через Yandex Geocoder API.
Реальный mismatch найден на «Малышева 125»: наш point
56.838977, 60.640233vs Yandex56.840872, 60.654077— ~870 метров, точка в другом квартале. Backfill это починит.Files (5 staged, +1386 / -58)
scripts/backfill_house_coords.py(new)scripts/_yandex_reverse.py(mod)forward_via_api(), precision/kind в resultscripts/audit_address_sample.sql(mod)tests/test_backfill_house_coords.py(new)scripts/README.md(new)Test plan
pytest tests/test_backfill_house_coords.py tests/test_audit_address_mismatch.py→ 39 passruff check scripts/ tests/→ clean--limit 100 --batch canary_2026-05-27→ inspect audit_status splitDecisions
street/range/near/other→ audit-imprecise (не пишем неточные обратно в houses)ll=60.6122,56.8389, spn=0.6,0.4— иначе «ул Малышева 51» матчит МоскваDeployment
tradein-mvp/backend/**)sed -i s/^# YANDEX/YANDEX/g .env.runtime(или add line) на VPSdocker restart tradein-backendдля pick up env vardocker exec tradein-backend python -m scripts.backfill_house_coords --limit 100 --batch canary_2026-05-27Closes #582 (Phase 2-3 portion; Phase 1 was #583)