refactor(tradein): drop dead schema — sale_type_text column + audit_log (#731) #893
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#893
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/731-dead-schema"
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?
Summary
Verified-safe subset of
TradeinDb_Audit_May30(analyst-pruned scope — does NOT touch the code-referenced empty tables).sale_type_textreferences (column is 100% NULL, code-only):yandex_detail.py(model field + parse block + ctor kwarg),conflict_resolution.pypriority map. Tests updated (test_yandex_detail.py,test_conflict_resolution.py).grep sale_type_text app+tests= 0.dead_schema.sql:ALTER TABLE listings DROP COLUMN IF EXISTS sale_type_text; DROP TABLE IF EXISTS audit_log;(audit_log: 0 rows, 0 refs, no triggers).BEGIN/COMMIT,IF EXISTS, idempotent.UP038lints inconflict_resolution.pyfixed (isinstance tuple→union) — surfaced by the pre-commit hook once the file was staged.Explicitly NOT dropped:
houses_price_dynamics/agents/sellers/estimate_photos/house_reviews/listings_snapshots(all code-referenced roadmap, per spec).Test plan
pytest -k "estimator or search or listings or base"→ 265 passed (1 pre-existing unrelated auth-401 failure); changed test files 70/70 pass; ruff clean./estimate200;information_schema.columnshas nolistings.sale_type_text;audit_loggone.⚠️ Migration auto-applies to prod on deploy. Low-risk (drops a 100%-NULL column + a 0-row table), but reviewer should confirm
audit_loghas no triggers on the live DB before applying (spec verified it does not).Refs #731