fix(site-finder): remove dead sat_factor (computed+written, never applied) (#1509) #1698
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#1698
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/score-sat-factor-1509"
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?
Проблема (#1509)
sat_factor(=1+((sold_pct-50)/100)*0.3) вычислялся в09_macro_and_trend.py, писался вdistrict_economics.sat_factor, анпакался в10_score_v2.py— но никогда не применялся ни в одном score.server.pyтоже его фетчил и не применял. Живойmarketуже использует другую sat-метрику → двойной учёт absorption.Решение (убрать как dead code — выбор владельца)
Снос end-to-end: computation в
09_macro_and_trend.py, unpack в10_score_v2.py, fetch вserver.py, doc-строка вstatic/index.html, + миграция162_drop_district_economics_sat_factor.sql(DROP COLUMN IF EXISTS).⚠️ НЕ тронут
analytics_queries.py— там НЕЗАВИСИМЫЙ in-memorysat_factorиз_district_market_saturation()(queries domrf_kn_*, не эту колонку).Verify
grep подтверждает ноль живых читателей в
site-finder/.ruffclean;pytest(score/macro/trend/district_econ/server) → 361 passed, 1 skipped.Closes #1509