Skip to content

Generate a trait for each custom permission

mo khan requested to merge mokhax/generate-custom-traits into master

What does this MR do and why?

This change updates the MemberRole FactoryBot factory to automatically generate a trait for each custom permission that is defined in the ee/config/custom_abilities/ directory. This change removes the need to manually register traits in the FactoryBot file for the MemberRole class.

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.

Edited by mo khan

Merge request reports