Skip to content

Add the admin API for resources and tags (W4-07) - #106

Merged
calebyhan merged 2 commits into
mainfrom
95/admin-resources-tags
Nov 4, 2026
Merged

calebyhan merged 2 commits into
mainfrom
95/admin-resources-tags

Conversation

@yewonsongg

Copy link
Copy Markdown
Contributor

Coordinators need to manage all resources, including unpublished UNC listings, their tags, and which resources appear as crisis resources.

Changes:

  • Add coordinator-only list, create, update, and delete endpoints for resources and tags, including publication status and display order.
  • Validate resource contact details and tag IDs, return 409 tag_exists for duplicate tag names, and replace tags when tag_ids is patched.
  • Audit all resource and tag mutations using safe metadata, and preserve deletion behavior for tag associations and fit-guide links.
  • Add regression coverage for CRUD, authorization, validation, ordering, tag replacement, deletion cleanup, and audit records.

Validation: lint and formatting, backend and frontend type checks, 356 backend tests, 152 frontend tests, migrations and model drift checks, and the production build passed. Frontend tests ran with the normal configuration in an identical local /tmp copy because the Windows 9p workspace mount caused worker-startup timeouts. The temporary test-runner adjustment was restored.

The branch merges cleanly with the latest main.

Closes #95

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Backend Test Results

356 tests  +17   356 ✅ +17   10s ⏱️ +3s
  1 suites ± 0     0 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 003bc15. ± Comparison against base commit 534d88a.

@calebyhan calebyhan 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 1d40963 into main Nov 4, 2026
4 checks passed
@calebyhan
calebyhan deleted the 95/admin-resources-tags branch November 4, 2026 22:32
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.

Add the admin API for resources and tags (W4-07)

2 participants