feat: add list_bounties and list_all_bounties methods to storage adapter #57
Reference in New Issue
Block a user
Delete Branch "fix/issue-42"
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 filtering methods to
JsonFileRoomStoragefor Phase 2 soft delete support:list_bounties(room_id): returns only non-deleted bounties for normal querieslist_all_bounties(room_id, include_deleted=True): returns all bounties for /recover functionalityChanges
JsonFileRoomStorage
list_bounties(room_id)method - filters out soft-deleted bounties (wheredeleted_atis not None)list_all_bounties(room_id, include_deleted=True)method - returns all bounties or only non-deleted based on flagcore/ports.py
RoomStorageprotocol to include the newlist_bountiesandlist_all_bountiesmethodstests/test_ports.py
SimpleRoomStorageandMockRoomStoragemock classes to implement the new methodsDependencies
Fixes #42
lgtm