feat: rework membership statuses and OIDC group mapping - #4
Draft
duszmox wants to merge 4 commits into
Draft
Conversation
- rename membership_status enum to MEMBER_CANDIDATE_CANDIDATE/MEMBER_CANDIDATE/MEMBER/ACTIVE_ALUMNI/ALUMNI and drop contributor status - reduce OIDC claim mapping to sub; map six Authentik groups (admin, studio, candidates, leadership, alumni) - remove contributors page and migrate member_cache enum
duszmox
marked this pull request as draft
August 31, 2026 20:21
- replace `delete` operation with `archive` in members webhook API; response now reports `archived` count - rename `member_cache.deleted_at` to `archived_at` and `webhook_deliveries.deleted_count` to `archived_count` (migration) - update OpenAPI spec, ingest logic, admin diagnostics, sitemap/search filtering, and tests
- alias v.id as "videoId" in activity query so mapped rows include it - assert videoId values in member activity integration test
- Include archived members in search results with (Archivált) label - Show Archivált label on member profiles - List archived members on archive pages - Extract shared event/member result rows on search page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
studio_applicant/studio_candidate/studio_member/senior_active/senior_archived/contributor) withMEMBER_CANDIDATE_CANDIDATE,MEMBER_CANDIDATE,MEMBER,ACTIVE_ALUMNI,ALUMNImember_cache.membership_statusrows (contributors and archived seniors map toALUMNI) before recreating the Postgres enumadmin,studio,studioCandidate,studioCandidateCandidate,leadership,alumnikeys; claim mapping reduced tosubonlyadmin-devbootstrap user and update README dev-role docs/members/contributorspage and refresh member labels, admin member filters, webhook OpenAPI spec and OOB docs/examplesTesting
tests/unit/auth-oidc.test.ts,tests/unit/auth-policy.test.ts,tests/unit/member-ingest.test.ts,tests/unit/oob-config.test.ts,tests/unit/local-bootstrap.test.ts)tests/integration/member-pages.test.ts,member-webhook.test.ts,admin-access.test.ts,auth-*.test.ts,schema.migration.test.ts)member_cacherows