Project setting for suggested reviewers
What does this MR do and why?
Project setting for Suggested Reviewers
Related to #373013 (closed)
We can use HAML and view components for little frontend functionality per https://docs.gitlab.com/ee/development/fe_guide/haml.html#haml-and-our-pajamas-design-system
Migration output
$ bin/rails db:migrate:up:main VERSION=20220918124223
main: == 20220918124223 AddEnableSuggestedReviewersToProjectSettings: migrating =====
main: -- add_column(:project_settings, :suggested_reviewers_enabled, :boolean, {:default=>false, :null=>false})
main: -> 0.0138s
main: == 20220918124223 AddEnableSuggestedReviewersToProjectSettings: migrated (0.0143s)
$ bin/rails db:migrate:down:main VERSION=20220918124223
main: == 20220918124223 AddEnableSuggestedReviewersToProjectSettings: reverting =====
main: -- remove_column(:project_settings, :suggested_reviewers_enabled, :boolean, {:default=>false, :null=>false})
main: -> 0.0018s
main: == 20220918124223 AddEnableSuggestedReviewersToProjectSettings: reverted (0.0034s)
Screenshots or screen recordings
How to set up and validate locally
- Ensure a SaaS (Gitlab.com) environment
- One way of doing this is to add a
env.runit
file to the root GDK folder with the following snippetexport GITLAB_SIMULATE_SAAS=1
- One way of doing this is to add a
- Set ultimate license on a group http://gdk.test:3000/admin/groups
- Create a project in there
- Enable the feature flag on rails console
bin/rails c
=>Feature.enable(:suggested_reviewers, project)
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.
Edited by Alper Akgun