Skip to content

Admin Events Dashboard: Submitted Events Do Not Appear - #178

Merged
calebyhan merged 1 commit into
mainfrom
165/admin-events-get-route
Jul 4, 2026
Merged

Admin Events Dashboard: Submitted Events Do Not Appear#178
calebyhan merged 1 commit into
mainfrom
165/admin-events-get-route

Conversation

@calebyhan

Copy link
Copy Markdown
Contributor

The admin Events page calls GET /api/admin/events to populate its table. This route did not exist -- the admin events router only defined POST, PUT, and DELETE -- so the request 405'd, the error was caught silently, and the table always rendered empty even after events were successfully created.

Changes:

  • Added a GET /api/admin/events route returning all events (published and unpublished), protected by get_current_user, sorted by start_datetime, using AdminCalendarEventDTO
  • Left the public GET /api/events route (which filters to is_published == true) unchanged

Closes #165

The admin events dashboard called getAdminEvents() but the admin
router only had POST/PUT/DELETE, so submitted events never appeared
in the list. (#165)
@github-actions

Copy link
Copy Markdown

Test Results

570 tests  ±0   570 ✅ ±0   49s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c1aa67c. ± Comparison against base commit bc11881.

@MasonMines2006 MasonMines2006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@calebyhan
calebyhan merged commit fec3bae into main Jul 4, 2026
3 checks passed
@calebyhan
calebyhan deleted the 165/admin-events-get-route branch July 4, 2026 15:22
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.

Admin Events Dashboard: Submitted Events Do Not Appear

2 participants