Filtered groups needs to be expanded twice for subgroups to appear in Your Works > Groups

Summary

When searching for a group with subgroups. You need to click the expand button twice to show the subgroups.

Steps to reproduce

  1. Go to /dashboard/groups.
  2. In the search filter, type in the name of a top-level group.
  3. Click the expand button

Example Project

What is the current bug behavior?

Needs a second click to actually expand the subgroup

What is the expected correct behavior?

Only needs one click

Possible fixes

The first click sends the requests but doesn't automatically expand. We need to do the following:

  1. Expand the group on first click.
  2. If the subgroups are not in memory, show a loading state.
  3. Once the network request is completed. Hide the loading state and show the subgroups.

Patch release information for backports

If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.

Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.

High-severity bug remediation

To remediate high-severity issues requiring an internal release for single-tenant SaaS instances, refer to the internal release process for engineers.

Edited by Shane Maglangit