Add missing endpoints, fix batch updates, and implement RSVP status #21

Merged
andika merged 1 commits from dev into loaf-prod 2026-01-05 18:08:21 +00:00
Owner

New Endpoints

  • GET /admin/events/{event_id}: Get single event details (admin)
    • Allows viewing unpublished events
    • Returns full event with RSVP count

Enhanced Endpoints

  • PUT /admin/events/{event_id}/attendance: Accept batch updates

    • Add BatchAttendanceUpdate model for array of updates
    • Support both single and bulk attendance marking
    • Return count of updated records
  • GET /events: Include user RSVP status in response

    • Query current user's RSVP for each event
    • Enable calendar color coding by status
  • GET /events/{event_id}: Include user RSVP status

    • Query current user's RSVP for event details
    • Maintain consistency with list endpoint

Bug Fixes

  • GET /members/event-activity: Fix timezone comparison
    • Add timezone-aware conversion for event.end_at
    • Resolve "can't compare offset-naive and offset-aware" error
## New Endpoints - **GET /admin/events/{event_id}**: Get single event details (admin) - Allows viewing unpublished events - Returns full event with RSVP count ## Enhanced Endpoints - **PUT /admin/events/{event_id}/attendance**: Accept batch updates - Add BatchAttendanceUpdate model for array of updates - Support both single and bulk attendance marking - Return count of updated records - **GET /events**: Include user RSVP status in response - Query current user's RSVP for each event - Enable calendar color coding by status - **GET /events/{event_id}**: Include user RSVP status - Query current user's RSVP for event details - Maintain consistency with list endpoint ## Bug Fixes - **GET /members/event-activity**: Fix timezone comparison - Add timezone-aware conversion for event.end_at - Resolve "can't compare offset-naive and offset-aware" error
andika added 1 commit 2026-01-05 18:08:09 +00:00
## New Endpoints
- **GET /admin/events/{event_id}**: Get single event details (admin)
  - Allows viewing unpublished events
  - Returns full event with RSVP count

## Enhanced Endpoints
- **PUT /admin/events/{event_id}/attendance**: Accept batch updates
  - Add BatchAttendanceUpdate model for array of updates
  - Support both single and bulk attendance marking
  - Return count of updated records

- **GET /events**: Include user RSVP status in response
  - Query current user's RSVP for each event
  - Enable calendar color coding by status

- **GET /events/{event_id}**: Include user RSVP status
  - Query current user's RSVP for event details
  - Maintain consistency with list endpoint

## Bug Fixes
- **GET /members/event-activity**: Fix timezone comparison
  - Add timezone-aware conversion for event.end_at
  - Resolve "can't compare offset-naive and offset-aware" error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
andika merged commit 9c5aafc57b into loaf-prod 2026-01-05 18:08:21 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: andika/membership-be#21