Skip to content

feat(health): schema health / smell report#470

Open
seonghobae wants to merge 1 commit into
mainfrom
feat/schema-health
Open

feat(health): schema health / smell report#470
seonghobae wants to merge 1 commit into
mainfrom
feat/schema-health

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

New independent feature against main. GET /api/snapshots/{uuid}/schema-health turns a snapshot into a prioritized findings list: no_primary_key (can't safely update/replicate), unindexed_foreign_key (slow joins/cascades; best-effort index parse), orphan_table (disconnected / missing relationship). Most-severe first + summary. Pure (snapshot JSON only), IDOR-safe. backend +5 tests; mypy clean.

🤖 Generated with Claude Code

New independent feature against main. analyze_schema_health(snapshot) flags no_primary_key (warning), unindexed_foreign_key (warning; best-effort index-column parse from index_def), orphan_table (info), most-severe first + summary. GET /api/snapshots/{uuid}/schema-health (IDOR-safe). Pure, snapshot-json only. +5 tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxU2xaupAjp912oDNFuWyd
@seonghobae seonghobae enabled auto-merge (squash) July 6, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant