Skip to content

Organizations Users - User Table

What does this MR do and why?

Work towards #409313 (closed)
Work Item: #410185 (closed)
GraphQL endpoint: !130017 (merged)

This change utilizes the existing Admin users table to represent an organizations users

This change is behind a feature flag (:ui_for_organizations)

note: The goal here is to re-use as much of the existing User Admin view as possible to ensure the experiences are consistent between an Organization's users and an instance's users

Screenshots or screen recordings

Before After
before Screenshot_2023-10-30_at_4.22.11_PM

How to set up and validate locally

Without any User Data

  1. Enable FF in rails c Feature.enable(:ui_for_organizations)
  2. Go to Default Organization path (http://127.0.0.1:3000/-/organizations/default)
  3. In left nav, click Manage => Users
  4. Ensuring Loading icon temporarily and then once complete text that says "No users found" is on the screen

With User Data

  1. Enable FF in rails c Feature.enable(:ui_for_organizations)
  2. 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)
  3. Go to Default Organization path (http://127.0.0.1:3000/-/organizations/default)
  4. In left nav, click Manage => Users
  5. Ensuring Loading icon temporarily and then once complete the Users Table appears

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zack Cuddy

Merge request reports

Loading