Namespace license checks for MR approvers
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Maintainer
Merge requests approvers (EES / Bronze)
-
Do not display
Approvals required
andReset approvals on push
options on the project settings page. -
How to handle for future cases where this has already been set?
-
- Author Maintainer
Expert: @vsizov
- Author Maintainer
@vsizov How much effort do you estimate it will take to find all places that touch MR approvers and add
project.feature_available?(:merge_request_approvers)
checks to them (both on frontend and backend), so that this feature can be turned off for a specific project in its entirety by having that method returnfalse
?Edited by Douwe Maan - Douwe Maan mentioned in issue #2335 (closed)
mentioned in issue #2335 (closed)
- Contributor
I think it's enough to return
0
from methodsapprovals_before_merge
in MR and project models, like:def approvals_before_merge return 0 unless project.feature_available?(:merge_request_approvers) super end
- Douwe Maan assigned to @to1ne
assigned to @to1ne
- Developer
- Toon Claes assigned to @nick.thomas and unassigned @to1ne
assigned to @nick.thomas and unassigned @to1ne
- Nick Thomas mentioned in merge request !2324 (merged)
mentioned in merge request !2324 (merged)
- Douwe Maan closed via merge request !2324 (merged)
closed via merge request !2324 (merged)
- Douwe Maan mentioned in commit 60fbb4bf
mentioned in commit 60fbb4bf
- Mike Bartlett mentioned in issue #2501 (closed)
mentioned in issue #2501 (closed)