fix(site-finder): non-overlapping L2/L3 ready_dt windows, stop double-count of 13-24mo supply (#1355) #1677
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#1677
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/supply-layers-overlap-1355"
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?
Проблема (#1355)
_L2_HIDDEN_SQLне имел фильтра поready_dtвообще → тянул все dom.rf объекты независимо от срока сдачи. Объект сready_dt=now+18moпопадал и в L2 (hidden), и в L3 (future) → двойной учёт стока 13–24 мес.Решение
Полуоткрытые непересекающиеся интервалы по границе
now+12mo:ready_dt IS NULL OR ready_dt <= now+12mo(NULL = уже сдаётся → L2)ready_dt > now+12mo(без изменений)Константа
_L2_NEAR_HORIZON_MONTHS=12в пару к_L3_FUTURE_HORIZON_MONTHS. L1/L2 — разные source-таблицы, overlap'а нет.Verify
ruffclean,py_compileok;pytest -k "supply or layer"→ 334 passed.Closes #1355