|
All checks were successful
CI Trade-In / changes (pull_request) Successful in 11s
CI / changes (pull_request) Successful in 11s
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m53s
CI / backend-tests (pull_request) Successful in 14m49s
_AVG_PRICE_SQL фильтровал domrf_kn_flats по одной глобальной MAX(snapshot_date), но таблица — per-object time series (UNIQUE(obj_id, snapshot_date)). На глобальной дате обычно присутствует лишь 1 объект → у всех остальных конкурентов 0 строк → avg_price_per_m2=NULL → _price_similarity падает на нейтральные 0.5, молча деградируя relevance-ранжирование. Портируем flats_latest DISTINCT ON (obj_id) ... ORDER BY snapshot_date DESC, id DESC CTE из best_layouts.py (#1956) — каждый конкурент берёт СВОЙ последний снапшот. Индекс 174_domrf_kn_flats_obj_snapshot_idx уже обслуживает CTE (новая миграция не нужна). Objective-fallback композиция не тронута: missing_price_ids считается после domrf-запроса → естественно сжимается. Refs #2445 |
||
|---|---|---|
| .. | ||
| test_best_layouts.py | ||
| test_competitor_relevance.py | ||
| test_competitors_avg_price_sql.py | ||
| test_competitors_parking.py | ||
| test_competitors_sold_count_sql.py | ||
| test_developer_attribution.py | ||
| test_district_resolver.py | ||
| test_future_supply.py | ||
| test_locations.py | ||
| test_macro.py | ||
| test_market_metrics.py | ||
| test_own_portfolio.py | ||
| test_parcel_financial.py | ||
| test_pat_subzones.py | ||
| test_permits_nearby.py | ||
| test_premises_lookup.py | ||
| test_program_optimizer.py | ||
| test_riasurt_lookup.py | ||
| test_supply_layers.py | ||