feat(gisogd66): permits_nearby — точный радиус-запрос РНС/РВЭ (#2367 PR-2, backend-half) #2401
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#2401
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/gisogd-permits-nearby"
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?
Что
Backend-половина PR-2 из #2367: делаем видимыми данные ГИСОГД (9065 разрешений на проде) в analyze-payload. Закрывает 5-летний TODO в
parcels.py:Phase 3 случилась (
gisogd_permits.geomнаполнена, GIST-индекс) → новый аддитивный ключpermits_nearby(ST_DWithin 500м), старый quarter-prefix путь (recent_permits_in_quarter/permits_summary, живая таблицаekburg_construction_permitsс данными застройщика) не тронут — работает параллельно.Честность (по конвенции проекта «без тихих капов»)
total_count/rs_count/rv_countсчитаются по полной выборке радиуса (SQL без LIMIT), списокitemsкапается срезом в Python (30),items_truncatedявно сигнализирует, если список неполный — задел под «показать все N» на фронте.Проверки
analyze_parcelтронут ЧИСТО аддитивно (0 строк удалено, существующие ключи/scoring не задеты)Что дальше (не в этом PR)
Frontend-компонент рендера в §6 (
Section6Forecast.tsx) — второй PR сразу после мержа этого (нужны свежие типы).Refs #2367