feat(tradein/matching): fias_exact tier + estimate fias persist + suggest fias_id contract #2184
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#2184
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-fias-tier-matching"
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
ФИАС (
houses.house_fias_id, наполнен DaData-backfill'ом 2026-07-02 у 5 122 домов, UUID-неймспейс = ГАР OBJECTGUID) становится first-class ключом матчинга:fias_exactвmatch_or_create_houseиmatch_house_readonly(между cadastral и source+ext_id):lower(house_fias_id) = lower(:fias), confidence 0.95. Параметр additive-optional — все существующие callers обратносовместимы.159_houses_fias_idx.sql: идемпотентный partial indexhouses_fias_lower_idx ON houses (lower(house_fias_id)) WHERE house_fias_id IS NOT NULL.house_fias_idв houses (SAVEPOINT, семантика backfill-скрипта) — справочник наполняется сам по мере оценок;target_fias_idиз request используется первым.SuggestItem.fias_id(только house-level кандидаты DaData-тира, fias_level 8/9), request-полеTradeInEstimateInput.target_fias_id— фронт подключается отдельным PR: выбранный в автокомплите дом матчится детерминированно, без clean-вызова и квоты.Test plan
test_search_api::test_search_cache_hitpre-existing env-артефакт (401 без auth-заголовка, воспроизводится на немодифицированном main-коде, search API не трогался)Связано: DaData suggest-backfill 2026-07-02 (fias 6→5122, ГАР-join +524, ревизия 25 canon-расхождений), PR #2173 (estimator, зона аналогов — не пересекается).