gabriel / musehub public
feat patch mists task/mist-phase3-db-models-service #1 / 1
gabriel · 65 days ago · Apr 15, 2026 · Diff

feat(mists): Phase 3 — DB model, Pydantic wire models, service layer, migration, and 81-test suite

- MusehubMist ORM class appended to musehub_models.py (25 columns, 4 composite indices, self-referential fork FK with SET NULL) - 7 Pydantic wire models in musehub/models/mists.py (MistResponse, MistListEntry, MistListResponse, MistCreateRequest, MistUpdateRequest, MistForkResponse, MistEmbedResponse) with validators for visibility, tags (XSS/null/length), and filename - 9 async service functions in musehub/services/musehub_mists.py: create, get, list (keyset pagination), fork (depth-limited to 5), update, delete, increment_view, increment_embed, get_forks - Alembic migration 0048 (down_revision=0047) - 81-test suite across 8 tiers: unit, integration, edge cases, stress, data integrity, performance, security, docstrings — all green

sha256:bf218c635e12eb3f5b298df0d3bac3026c510d6d21269fc2fbc8ebeb0d5d82c7 sha
sha256:b9692d655419969ec3385210c76e436c5634ae1fa56af3e8a5e538bdbd24876b snapshot
← Older Oldest on task/mist-phase3-db-models-service
All commits
Newer → Latest on task/mist-phase3-db-models-service

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:bf218c635e12eb3f5b298df0d3bac3026c510d6d21269fc2fbc8ebeb0d5d82c7 --body "your comment"