feat: load user roles and groups into MPUserProfile + Discord release notification#50
Merged
chriskehayias merged 2 commits intomainfrom Feb 26, 2026
Merged
Conversation
After login, UserService now fetches the user's roles (from dp_User_Roles) and user groups (from dp_User_User_Groups) in parallel and includes them as string arrays on MPUserProfile. This enables downstream components to make authorization decisions based on roles and group membership. - Add roles and userGroups fields to MPUserProfile interface - Query dp_User_Roles and dp_User_User_Groups via _ID_TABLE JOINs - Return undefined explicitly when user not found (with early return guard) - Update shared action and user context to handle undefined return type - Add tests for roles/groups mapping and empty result handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sends a Discord embed on new GitHub releases using jq to safely build the JSON payload, avoiding breakage from special characters in release notes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
MPUserProfileto include the user's roles and groups, loaded viaUserServiceuser-contextand shared actions to surface roles/groups to the rest of the appjqto safely handle special characters in release notesTest plan
MPUserProfilecorrectly populatesrolesandgroupsfor an authenticated useruseUser()context exposes roles/groups to client componentsGenerated with Claude Code