Skip to content

bffc 7 get recurring event endpoint - #240

Closed
jxuistrying wants to merge 53 commits into
mainfrom
feature/bffc-7-get-recurring-event-endpoint
Closed

jxuistrying wants to merge 53 commits into
mainfrom
feature/bffc-7-get-recurring-event-endpoint

Conversation

@jxuistrying

Copy link
Copy Markdown

ℹ️ Issue

Closes #7

📝 Description

  • Adds GET /recurringEvent/{site_id} endpoint to fetch recurring events for a specific site.
  • Added recurring-event module with controller, service, and DTOs
  • Added site validation (returns 404 if site doesn't exist)
  • Added sorting by date and pagination support via query params

✔️ Verification

used swagger api to test endpoint
image
image

🏕️ (Optional) Future Work / Notes

none

mehanana and others added 30 commits September 18, 2026 11:35
…endpoint

bffc-14 Added GET sites endpoint
Returns all images and videos for a single site in one paginated
response, newest first, with an optional ?type=image|video filter.

- Extend Image/Video entities with title, description, uploadedAt
  (+ migration and updated seed data)
- New media module: controller, service, DTOs mirroring the sites pattern
- uploadedBy derived from the site steward; URLs are unsigned S3 URLs
- ParseUUIDPipe -> 400 for malformed ids, NotFoundException -> 404
- Unit tests for both-types, single-type, empty, each filter, 400, 404

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace deriving uploadedBy from the site steward with a real per-item
uploaded_by foreign key on the images and videos tables, so each media
item reports who actually uploaded it.

- Add uploaded_by FK (nullable, -> users) to Image/Video entities
- Extend the migration with the column + FK constraint on both tables
- Seed media with varied uploaders to show per-item attribution
- Service loads images.uploadedBy / videos.uploadedBy and maps the name
- Update unit tests accordingly

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The uploaded_by columns/FKs were added by editing 1789710910807, which was
already applied in existing databases, so migration:run skipped it and the
columns were never created (entity expected a column that didn't exist).

Revert 1789710910807 to its applied form and add uploaded_by in a new
1789710910808 migration so it runs on databases that already have 807.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bodhiYG and others added 20 commits October 28, 2026 18:05
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
bffc-6 GET /announcement_id/{site_id}: List announcements published for a given site
bffc-2 GET /adminEvent: List staff endpoint
Add createUser, addUserToGroup, removeUserFromGroup, disableUser and
enableUser, plus CreateCognitoUserDto and role-to-group mapping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve seed.ts conflict and adapt the new admin events endpoint to the
startTime/endTime columns; drop the volunteer opportunity seed since that
entity was removed on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 - Add Cognito admin user management functions
@jxuistrying
jxuistrying requested a review from maxn990 as a code owner November 22, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants