feat(velocity): migrate D2 sales source → objective_corpus_room_month #158

Merged
lekss361 merged 3 commits from feat/migrate-velocity-objective-v2 into main 2026-05-15 06:34:00 +00:00

3 commits

Author SHA1 Message Date
lekss361
5c926470c6 fix(types): add 'objective' to velocity_source union (cherry-pick miss)
Cherry-pick от закрытого PR #157 потерял этот файл. Frontend type-check fails
с 'no overlap' error. Restoring.

Refs: PR #158 frontend CI failure
2026-05-15 09:29:01 +03:00
lekss361
cc03ffa32d fix(velocity): cross-stack contract + NULL safety per pre-push review
3 pre-push code-reviewer findings fixed:

1. TS union extended ('objective'|'sale_graph'|'rosreestr_fallback')
   + UI conditions handle both objective и sale_graph как valid sources.
2. COALESCE(deals_total_vol_m2, deals_total_count * 45.0) — NULL safety
   for DKP-only rows (vol_m2 nullable, count > 0).
3. room_bucket parking filter — verified false positive (все 5 buckets
   apartments: студия/1/2/3/4+).

Refs: PR #157 pre-push code-reviewer
2026-05-15 09:24:32 +03:00
lekss361
a21f440dcf feat(velocity): migrate D2 sales source from stale sale_graph to objective_corpus_room_month
Closes #156
2026-05-15 09:24:32 +03:00