Skip to content

New: Add user groups#45

Open
taylortom wants to merge 5 commits into
masterfrom
merge-usergroups
Open

New: Add user groups#45
taylortom wants to merge 5 commits into
masterfrom
merge-usergroups

Conversation

@taylortom
Copy link
Copy Markdown
Contributor

Fixes #44

New

  • Usergroup CRUD API at /api/usergroups via a child router, reusing inherited requestHandler/queryHandler with custom usergroupsProcessRequest middleware
  • registerUsergroupModule(mod) method for other modules to opt in to usergroup schema extension
  • Cascade delete: removing a usergroup automatically $pulls its reference from all registered modules' documents
  • usergroup.schema.json and usergroups.schema.json (user schema extension adding userGroups array field)
  • adapt-authoring-jsonschema added as peer dependency

Testing

  • 17 new unit tests covering usergroupsProcessRequest, registerUsergroupModule, removeUsergroupRefs, and cascade delete logic
  • All 28 tests passing, standard lint clean

@taylortom taylortom changed the title New: Merge usergroups into users module New: Add user groups Mar 27, 2026
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.

Merge usergroups functionality into users module

1 participant