fix(tradein/v2): address parse (Cyrillic \b bug) + scatter from listing_date #2049
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#2049
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-v2-fe1-address-scatter"
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?
Follow-up к #2038 (FE-1). Прод-QA на реальной оценке
701795d8вскрыла 2 дефекта мапперов:STREET_RE— JS\bНЕ ставит word-boundary вокруг кириллицы (только ASCII\w), поэтому street-токен никогда не матчился →object.addressпадал на голый номер дома ("14/3"), а город парсился как"14/3, Россия". ПереписалparseAddressпод оба порядка геокодеров (OSM house-first / DaData city-first); street-ключевик ограничен пробелом, не\b. Теперь"улица Яскина, 14/3"+ город"Екатеринбург".days_on_marketна проде null у всех лотов → scatter был пустой. Активные аналоги теперь фолбэчат на «дней в продаже» =today − listing_date(честный нижний bound; сделки по-прежнему требуют реальныйdays_on_market). TODO BE-1 (#2043) — заполнитьdays_on_market.Verify
address="улица Яскина, 14/3",city="Екатеринбург", scatter analogs=4).next buildзелёный (/v2 34.2 kB).Чистый mapper-only diff (1 файл, +65/−27), разметка компонентов не тронута.
QA on real prod estimate 701795d8 surfaced two mapper defects: - STREET_RE used JS \b which does NOT word-boundary Cyrillic → street token never matched → object.address fell back to the bare house number ('14/3') and city mis-parsed ('14/3, Россия'). Rewrote parseAddress to handle both OSM (house-first) and DaData (city-first) orders; street keyword delimited by space, not \b. Now 'улица Яскина, 14/3' + city 'Екатеринбург'. - days_on_market is null across prod lots → scatter-mini rendered empty. Active analogs now fall back to 'days listed so far' = today-listing_date (deals still require a real days_on_market — today-deal-date is not exposure). TODO BE-1. Verified via tsx harness against the real estimate (25/25); next build green.