Skip to content

Include group links in member role's member count

Hinam Mehra requested to merge 443369-update-member-count into master

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

Screenshot_2024-07-25_at_9.04.34_PM

How to set up and validate locally

  1. Make you are on an Ultimate license and you have SaaS mode off.
  2. 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)
  1. Navigate to any group that you are an owner of. Go to Manage > Members.
  2. Click on the Invite a group button and invite any group with the custom role you created in step 2.
  3. Navigate to /admin/application_settings/roles_and_permissions. The Member count should reflect the number of members in the invited group.

Related to #443369

Merge request reports