Fix compliance framework creation error on GitLab premium plans
What does this MR do and why?
- Fix a bug that prevented users on GitLab Premium plan to create compliance frameworks.
- Added RSpecs to assert this condition.
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
Numbered steps to set up and validate the change are strongly suggested.
- Simulate GitLab SaaS by following the steps in this doc.
- Create a group and set the plan as premium from the group admin settings.
- Create a new compliance framework in that group (keeping the pipeline configuration path as nil)
- Ensure that you are able to create the compliance framework successfully. (On current
master
this step would result in an error)
Watch this video for reference - https://www.loom.com/share/f221a32e70b04b7791863df08cddefcd
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #408957 (closed)
Edited by Huzaifa Iftikhar