Service layer: admin management, timezone, soft delete/recover #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Objective
Add service layer methods for Phase 2 features.
Changes Required
BountyService
is_admin(room_id, user_id) -> bool- check if user is adminadd_admin(room_id, user_id) -> None- add adminremove_admin(room_id, user_id) -> None- remove adminlist_admins(room_id) -> list[int]- list admin IDsset_timezone(room_id, timezone) -> None- set room timezoneget_timezone(room_id) -> str- get room timezone (default UTC+0)list_deleted_bounties(room_id) -> list[Bounty]- for /recover listlist_bounties()to exclude soft-deletedupdate_bounty()to check admin permission (not creator)delete_bounty()to perform soft delete (set deleted_at)add_bounty()to check link uniqueness within roomcheck_link_unique(room_id, link, exclude_bounty_id=None) -> boolTrackingService
Permissions
Dependencies
shoko referenced this issue2026-04-04 10:20:52 +02:00