feat(location): district Location entity + indices (#948 part B) #1166
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#1166
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/location-948b-r"
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?
Что
#948 Part B — «Локация» first-class entity (§8.2), АДДИТИВНО. Завершает #948 (Part A insight #1164). Ребейзнутая ветка (чистая линейная история поверх #1164+#962; main.py-конфликт router-include разрешён — оба роутера).
Новая таблица
location(ключ district_name) + 4 нормализованных [0,1] индекса (NULL при отсутствии, не фабричный 0), переиспользуя per-district forecast-функции:_district_poi_score / _city_avg_poi_scoremarket_metrics.overstock_index(доступный/залежавшийся конкурирующий сток — ортогонально demand, не sell-through) ← semantic-фикс по ревьюmarket_metrics.unit_velocity(saturating /50)future_supply_pressure.index(passthrough)146_location.sql(idempotent, range-CHECK, centroid GIST) +locations.pyservice (SAVEPOINT, CAST, ON CONFLICT) + Celery task+beat (Пн 07:00) + read-API.Качество
code-reviewer: ✅ gates (SQL+миграция); semantic-фикс competition⊥demand внесён + доказан тестом. 34 location + 156 regression, ruff, без deps. Аддитивно (parcels.py не тронут). Refs #948.