Skip to content

Organization Admin - Add badges to group list

Zack Cuddy requested to merge 443838-group-list-badges into master

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
Before After

How to set up and validate locally

Setup Organizations

  1. Access rails c
  2. Enable Feature Flag Feature.enable(:ui_for_organizations)
  3. 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

  1. Create a test group
  2. 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)
  3. Navigate to the GDK home page ex: 127.0.0.1:3000/
  4. Click Organizations in the sidebar
  5. Click the Default Organization
  6. Click the Manage > Groups and projects in the sidebar
  7. Switch list to Groups in the dropdown
  8. Ensure badge appear correctly for the group you just acted on

Related to #443838 (closed)

Edited by Zack Cuddy

Merge request reports