Organization Admin - Add badges to group list
What does this MR do and why?
Closes #443838 (closed)
Heavily inspired by: !145338 (merged) & !146516 (merged)
Important: This change is behind a feature flag ui_for_organizations
This change adds badges to the Group list in the Organization Admin. The only current badge is an EE feature Pending deletion.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
Setup Organizations
- Access
rails c
- Enable Feature Flag
Feature.enable(:ui_for_organizations)
- Create the default organization and add root to it
you = User.find_by_username('root')
default_organization = Organizations::Organization.default_organization
Organizations::OrganizationUser.create!(organization_id: default_organization.id, user_id: you.id)
Testing
- Create a test group
- Mark the group for deletion
a. Navigate to group
b. Settings -> General in side bar
c. Expand Advanced tab
d. Click delete group button and follow instructions
e. Group should be marked for deletion (noted by banner on group overview)
- Navigate to the GDK home page
ex: 127.0.0.1:3000/
- Click Organizations in the sidebar
- Click the Default Organization
- Click the Manage > Groups and projects in the sidebar
- Switch list to Groups in the dropdown
- Ensure badge appear correctly for the group you just acted on
Related to #443838 (closed)
Edited by Zack Cuddy