Skip to content
Snippets Groups Projects

Generate custom abilities documentation

Merged Jarka Košanová requested to merge 434352-generate-permissions-doc into master
All threads resolved!
7 files
+ 204
13
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -186,6 +186,7 @@ To add a new ability to a custom role:
- Add a new column to `member_roles` table, either manually or by running `custom_roles:code` generator, eg. by running `rails generate gitlab:custom_roles:code --ability new_ability_name`. The ability parameter is case sensitive and has to exactly match the permission name from the YAML file.
- Add the ability to the respective Policy for example in [this change in merge request 114734](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114734/diffs#diff-content-edcbe28bdecbd848d4d9efdc5b5e9bddd2a7299e).
- Update the specs. Don't forget to add a spec to `ee/spec/requests/custom_roles` - the spec template file was generated if you used the code generator
- Compile the documentation by running `bundle exec rake gitlab:custom_roles:compile_docs`
Examples of merge requests adding new abilities to custom roles:
Loading