Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #276215
Closed
Open
Issue created Nov 03, 2020 by Jiaan Louw@jiaan2️⃣Maintainer

Implementation: Show total group count for users in admin users table [Frontend]

Problem to solve

In #249589 (closed) we added a GraphQL endpoint to get the groupCount.

The total group count for each user should be shown in the admin/users table.

Dependant on Convert Admin "Users" view from HAML to Vue &4683.

Parent epic: &4432 (closed)

Proposal

Show the truncated total number of authorized Groups for each user.

Users_list_with_group_and_project_count

Implementation outline

  1. Asynchronously fetch and display the user_group_counts for all users using the GraphQL API #249589 (closed).
    • Important: This should be fetched independently of other user data due to the performance concerns noted below.
    • Suggestion: Use a skeleton loader as a placeholder while the content is busy loading.

Access

  • Administrator users can access the group count of all users in the system.
  • Non-administrator users can access the group count of only self

Feature Flag

The feature is gated behind the flag: user_group_counts, and is disabled by default.

Additional notes

The additional complexity for group count is due to the performance concerns we've dicussed here and discovered in !39581 (comment 399390950), and the implementation is based on database and frontend maintainer feedback with the intent to get the page time below 100ms by asynchronously loading the groups count.

Edited Apr 19, 2021 by Jiaan Louw
Assignee
Assign to
Time tracking