Skip to content

Organizations Users - FE Setup

Zack Cuddy requested to merge 409313_02-organization-level-users-js-app into master

What does this MR do and why?

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

This change sets up the basic FE JS bootstrapping and GraphQL query to power the Organization users view.

This change is behind a feature flag (:ui_for_organizations)

note: The UI is essentially using placeholders and the following MR will begin building out the actual UI components.

Screenshots or screen recordings

Before After
Before After

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 appears temporarily and then once complete an empty [] is on the screen as there are no users in the Organization.

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 appears temporarily and then once complete the JSON array of users is on the screen in plain text.

MR acceptance checklist

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

Merge request reports