Shared group not visible

There are scenarios when a shared group is not visible in the group hierarchy in My Groups and the Group Overview page. The group is still accessible by entering the URL directly.

Steps to Recreate

  1. Create a group A with 2 subgroups (B, C).
  2. Add a subgroup to each of those subgroups(B->D, C->E).
  3. Add a user to one of the child subgroups (D).
  4. Share that subgroup (D) with the child subgroup (E).

Expected Results

User can see groups A, B, C, D and E in a hierarchy in My Groups and the Group overview page. User should also see the projects from each group (including the projects from the shared subgroup) in My Projects and the Group overview page.

Actual Result

User can only see group A, B, D.

Example

This is what the full group structure looks like Screen_Shot_2020-06-26_at_10.05.08_PM

My user (mushakov) is in the "Product" group. The "System1" and "melissaTestSubGroup" have been shared with "Product" Screen_Shot_2020-06-26_at_10.05.28_PM

This is what my user (mushakov) sees in the group landing page. Screen_Shot_2020-06-26_at_10.01.47_PM I can navigate by URL to "System1" Screen_Shot_2020-06-26_at_10.02.07_PM You can see that "System1" has been shared with "Product" Screen_Shot_2020-06-26_at_10.02.21_PM Same with "melissaTestSubGroup" Screen_Shot_2020-06-26_at_10.13.31_PM

Edited by Imre Farkas