Skip to content

Member#member_namespace in hierarchy of MemberRole#namespace

Jessie Young requested to merge jy-custom-role-validation into master

What does this MR do and why?

  • Add validation to ensure that member records associated with custom roles (members#member_role_id present) are associated with entities within the hierarchy of the member_role#namespace.
  • There is already a validation the ensures member_role#namespace is a root group.
  • Custom roles will be defined on a root group and applied to memberships within that group's hierarchy. This validation ensures that we don't end up with custom roles defined on a group and used by groups that are not within the same hierarchy.
  • Custom Roles MVC issue: #352891 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  • Create custom member role
  • Associate membership with member role
  • If the membership is for an entity outside of the hierarchy of the group of the member_role, there should be a validation error

MR acceptance checklist

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

Edited by Jessie Young

Merge request reports

Loading