Organizations Users - Add Badge format
What does this MR do and why?
Work towards #409313 (closed)
Full implementation !135502 (merged)
This change updates the Organizations Users query to handle the following:
- Create
OrganizationUserBadgeType
to process badges into the format the FE needs.
This change is behind a feature flag (:ui_for_organizations
)
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable FF in
rails c
Feature.enable(:ui_for_organizations)
- Add users to the default organization via
rails c
Organizations::OrganizationUser.create!(user_id: 1, organization_id: 1)
Organizations::OrganizationUser.create!(user_id: 2, organization_id: 1)
Organizations::OrganizationUser.create!(user_id: 3, organization_id: 1)
- Go to Default Organization path (
http://127.0.0.1:3000/-/organizations/default
) - In left nav, click Manage => Users
- Ensure JSON blob is painted to screen and
badge
key onroot
has correct badges like in the above After screenshot.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zack Cuddy