feat: Category Feature - Models & Storage (#85) #90
Reference in New Issue
Block a user
Delete Branch "feature/category-models-storage"
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
Add Category dataclass and update storage layer for category support (Issue #85).
Changes
Models (core/models.py)
Categorydataclass with fields:id,name,created_at,deleted_atcategory_ids: list[str]field toBountydataclasscategories: list[Category]field toRoomDatadataclassStorage (adapters/storage/json_file.py)
load()to deserialize categories and bounty.category_idssave()to serialize categories and bounty.category_idsBackward Compatibility
Existing data without categories works fine - new fields have default empty values.
Testing
All 96 existing tests pass.
Related Issues
Closes #85
lgtm