fix(tradein): дедуп объявлений по квартире + over_100 NULL-фикс (500 на списке) (148) #2075
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#2075
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-dedup-apartments"
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?
Два фикса (после QA Макса)
1. 🔴 HOTFIX: 500 на списке домов (
over_100= NULL)После роста покрытия (38%→76.9%) список домов упал с 500. Причина:
over_100 = (sale_share_pct > 100 OR sale_share_pct_45d > 100)— когда один % NULL, SQL даётfalse OR NULL = NULL, а схемаover_100: bool(не nullable) → Pydantic ValidationError. Фикс:COALESCE(... , false)на обе ветки → over_100 всегда bool.2. Дедуп объявлений по квартире (миграция 148)
Одна квартира на avito+cian+domklik = разные
dedup_hash→ считалась многократно. Фикс: числители считают distinct (комнаты, площадь, этаж), а не объявления.active_secondary4→2 (твой пример: 2-к на domklik+avito, 3-к на avito+cian).active_secondary23401→18524 (−20.8%),listings_45d−19.7%, 0 домов с ростом (монотонно).Validation
200после рестарта с фиксом.Test plan