Skip to content
Snippets Groups Projects

Fix inherited member source not visible to subgroup members

Merged Abdul Wadood requested to merge 455884-unmask-inherited-members into master

What does this MR do and why?

In !144638 (merged), we introduced a bug due to which we started masking the parent group members from the subgroup members when the visibility of these groups were private.

To check if the member is from an ancestor we should check whether the current source contains the member's source ID in its traversal IDs but we were doing the opposite. The specs had a gap because we were only testing public groups there and this problem only occurred for private groups.

I have also added a feature spec to cover this case.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Create a Parent group and its subgroup Child.
  2. Add a new user User2 to Child.
  3. Login using User2 and go to the members page of the Child.
  4. On the master branch the Parent group member's source would be masked with Private but on this branch, it should be visible.

Related to #455884 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Jonas Larsen removed review request for @j_lar

    removed review request for @j_lar

  • Abdul Wadood added 1 commit

    added 1 commit

    • 5a520497 - Use the new factory syntax to pass members to groups

    Compare with previous version

  • Abdul Wadood requested review from @brodock

    requested review from @brodock

  • Gabriel Mazetto
  • Gabriel Mazetto resolved all threads

    resolved all threads

  • Gabriel Mazetto approved this merge request

    approved this merge request

  • Gabriel Mazetto resolved all threads

    resolved all threads

  • @abdwdd LGTM! I've set it to MWPS :rocket:

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading