Include group links in member role's member count
What does this MR do and why?
- Updates the
membersCount
for when a group is invited by another group with a member role - Follows from !159213 (merged)
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
How to set up and validate locally
- Make you are on an Ultimate license and you have SaaS mode off.
- In the rails console:
# enable feature
Feature.enable(:assign_custom_roles_to_group_links)
# create a member role
member_role = MemberRole.create(base_access_level: 10, name: "Test", admin_cicd_variables: true)
- Navigate to any group that you are an owner of. Go to
Manage > Members
. - Click on the
Invite a group
button and invite any group with the custom role you created in step 2. - Navigate to
/admin/application_settings/roles_and_permissions
. TheMember count
should reflect the number of members in the invited group.
Related to #443369