Skip to content

Exclude self and ancestor in Invite a group to project/group modal

Doug Stull requested to merge 329835-restrict-group-project-selections into master

What does this MR do and why?

  • removes self and ancestor groups from the invite groups modal selections as per #329835

Screenshots or screen recordings

source before after
project Screen_Shot_2022-01-25_at_11.41.13_AM Screen_Shot_2022-01-25_at_11.32.38_AM
group Screen_Shot_2022-01-25_at_11.39.16_AM Screen_Shot_2022-01-25_at_11.35.33_AM

How to set up and validate locally

Projects

  1. Visit a project's member page.
  2. Click Invite a group button.
  3. Observe results for ancestor groups.

Groups

  1. Visit a group's member page.
  2. Click Invite a group button.
  3. Observe results.

MR acceptance checklist

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

Related to #329835

Edited by Doug Stull

Merge request reports