fix(tradein/estimator): резолвить target-город коридора из payload.address (C2 hotfix) #2490
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2490
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-oblast-c2fix-corridor-city"
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?
Проблема (verified на проде)
C2 city-scope ДКП-коридора оказался NO-OP для не-ЕКБ:
estimate_qualityрезолвил target-город изgeo.full_address, но геокодер роняет город для не-ЕКБ городов ('Ленина, 1'вместо'Нижний Тагил, Ленина, 1') →_resolve_target_city→ None → коридор не скоупился, а на stripped-адресе'Ленина, 1'возвращал None. Прод-диагностика: Нижний Тагил corridor=None (ЕКБ работал — corridor=11, т.к. ЕКБ-улицы и так почти EKB-специфичны).Фикс
Резолвить город из
payload.address(пользовательский ввод — город присутствует) с fallback на canonical/geo для bare-адресов; коридор матчить тоже поpayload.address. GET-rehydrate (trade_in.py):row.addressприоритетнее canonical (тот же класс).Verified (прод-диагностика)
corridor(address=payload.address, city=_resolve_target_city(payload.address)):EKB regression-гейт байт-зелёный (39 passed; коридор upstream от frozen
_price_from_inputs). ruff clean.Отдельно (не в этом PR)
full_addressроняет город для не-ЕКБ (displaytarget_address= «Ленина, 1») — cosmetic, чинится в E (задача UI/geocoder target_address).Зависит от C2 (#2488, уже в проде).