|
All checks were successful
CI Trade-In / changes (pull_request) Successful in 10s
CI / changes (pull_request) Successful in 10s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 2m18s
CI / backend-tests (pull_request) Successful in 15m16s
domrf_kn_objects retains ~9 snapshots per obj_id (prod: 4090 rows / 482 distinct obj_id for Строящиеся = 8.49× inflation). _active_competitors_count and developer_portfolio counted every historical snapshot as a distinct object; _competitors_two_dim's active CTE had the same class. Dedup via DISTINCT ON (obj_id) ORDER BY snapshot_date DESC, applying VOLATILE filters (site_status, district_name, obj_class — prod variance 11/1/29) in the outer query after dedup so an object is counted by its TRUE-latest snapshot, while stable scope (region_cd, dev_id — variance 0) stays in the CTE. Competitor counts and developer portfolios drop ~8× — correct de-inflation. Also backfill ON CONFLICT DO UPDATE SET: UPSERT_OBJECT_SQL dropped 8 freshly-computed columns on re-scrape, UPSERT_PHOTO_SQL dropped build_type — added as direct EXCLUDED (not COALESCE, so problem_flag can clear to NULL). Refs #2464 (clusters E + F). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cbr_macro.py | ||
| documents.py | ||
| domrf_catalog.py | ||
| domrf_catalog_object.py | ||
| domrf_kn.py | ||
| ekb_geoportal_client.py | ||
| ekb_krt_registry.py | ||
| ekb_ppt_tep_parser.py | ||
| ekburg_permits.py | ||
| flat_plans.py | ||
| gisogd66.py | ||
| gisogd_so_client.py | ||
| izyatie_client.py | ||
| izyatie_ocr.py | ||
| nspd_client.py | ||
| nspd_denorm.py | ||
| nspd_lite.py | ||
| obj_checks.py | ||
| objective.py | ||
| okn_egrkn_client.py | ||
| page_reservation_parser.py | ||
| pravo_gov66_client.py | ||
| rosstat_emiss.py | ||
| stealth.py | ||