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#2303
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-pii-purge-phones-client"
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?
Закрывает #2217 (телефоны продавцов) + #1969 (PII клиента) — решения user зафиксированы в комментах issue.
#2217 — listings.phones → NULL (не DROP, решение user буквально):
UPDATE listings SET phones = NULL WHERE phones IS NOT NULL(17342 строки).phonesизLISTING_FIELD_PRIORITY(zero production callers).management_companies.phones(другая сущность, УК/ТСЖ) не тронута.#1969 — client_name/client_phone → DROP COLUMN (решение user буквально):
ALTER TABLE trade_in_estimates DROP COLUMN IF EXISTS client_name, client_phone— нет VIEW/индексов, чисто.client_emailфизически не существовало (только в Sentry-scrub allowlist) — трогать нечего.code-reviewer: ✅ APPROVE (20 мин, учитывая необратимость данных — grep подтвердил отсутствие пропущенных референсов, golden-parity зелёные). Локально:
uv run pytest→ 3119 passed / 6 skipped (1 деселект известного флейкаtest_search_cache_hit);npm run type-check/lint— чисто.- listings.phones: миграция 166 обнуляет данные; cian.py + scraper-kit serp.py (golden-parity зеркало) перестают читать offer.get("phones") на входе — write-path выключен у источника, колонка/поле в модели остаются. Мёртвая запись "phones" в LISTING_FIELD_PRIORITY убрана. - trade_in_estimates.client_name/client_phone: миграция 167 дропает колонки; синхронно убраны из TradeInEstimateInput, обоих INSERT в estimator.py (основной путь + _empty_estimate), frontend TradeInEstimateInput и CRM-блока EstimateForm (поля "Имя клиента"/"Телефон"). - sentry_scrub.py и management_companies.phones не тронуты — вне scope.