Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6b03c62b
Commit
6b03c62b
authored
Dec 23, 2020
by
Mike Jang
Committed by
Ash McKenzie
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up instance-level MR approval UI text
parent
2a9cfa06
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
26 deletions
+33
-26
changelogs/unreleased/mjang-MR-approval-instance-level.yml
changelogs/unreleased/mjang-MR-approval-instance-level.yml
+5
-0
ee/app/views/admin/push_rules/_merge_request_approvals.html.haml
...views/admin/push_rules/_merge_request_approvals.html.haml
+2
-2
ee/app/views/admin/push_rules/_merge_request_approvals_fields.html.haml
...dmin/push_rules/_merge_request_approvals_fields.html.haml
+3
-3
ee/changelogs/unreleased/mjang-MR-approval-instance-level.yml
...hangelogs/unreleased/mjang-MR-approval-instance-level.yml
+5
-0
ee/spec/features/admin/admin_merge_requests_approvals_spec.rb
...pec/features/admin/admin_merge_requests_approvals_spec.rb
+6
-6
ee/spec/views/admin/push_rules/_merge_request_approvals.html.haml_spec.rb
...min/push_rules/_merge_request_approvals.html.haml_spec.rb
+2
-2
locale/gitlab.pot
locale/gitlab.pot
+10
-13
No files found.
changelogs/unreleased/mjang-MR-approval-instance-level.yml
0 → 100644
View file @
6b03c62b
---
title
:
Updated UI text to match style guidelines
merge_request
:
49871
author
:
type
:
other
ee/app/views/admin/push_rules/_merge_request_approvals.html.haml
View file @
6b03c62b
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
%section
.settings.merge-request-approval-settings.no-animate
{
class:
(
'expanded'
if
expanded_by_default?
)
}
%section
.settings.merge-request-approval-settings.no-animate
{
class:
(
'expanded'
if
expanded_by_default?
)
}
.settings-header
.settings-header
%h4
%h4
=
_
(
'Merge request
s
approvals'
)
=
_
(
'Merge request
(MR)
approvals'
)
%button
.btn.gl-button.js-settings-toggle
{
type:
'button'
}
%button
.btn.gl-button.js-settings-toggle
{
type:
'button'
}
=
expanded_by_default?
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
=
expanded_by_default?
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
%p
=
_
(
'
Settings to prevent self-approval across all projects in the instance. Only an administrator can modify these setting
s.'
)
=
_
(
'
Regulate approvals by authors/committers. Affects all project
s.'
)
.settings-content
.settings-content
%hr
.clearfix.mt-0
%hr
.clearfix.mt-0
...
...
ee/app/views/admin/push_rules/_merge_request_approvals_fields.html.haml
View file @
6b03c62b
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
.form-check
.form-check
=
f
.
check_box
:prevent_merge_requests_author_approval
,
class:
'form-check-input'
=
f
.
check_box
:prevent_merge_requests_author_approval
,
class:
'form-check-input'
=
f
.
label
:prevent_merge_requests_author_approval
,
class:
'form-check-label'
do
=
f
.
label
:prevent_merge_requests_author_approval
,
class:
'form-check-label'
do
=
_
(
'Prevent
approval of merge requests by merge request author
'
)
=
_
(
'Prevent
MR approvals by author.
'
)
.form-check
.form-check
=
f
.
check_box
:prevent_merge_requests_committers_approval
,
class:
'form-check-input'
=
f
.
check_box
:prevent_merge_requests_committers_approval
,
class:
'form-check-input'
=
f
.
label
:prevent_merge_requests_committers_approval
,
class:
'form-check-label'
do
=
f
.
label
:prevent_merge_requests_committers_approval
,
class:
'form-check-label'
do
=
_
(
'Prevent
approval of merge requests by merge request committers
'
)
=
_
(
'Prevent
MR approvals from users who make commits to the MR.
'
)
.form-check
.form-check
=
f
.
check_box
:disable_overriding_approvers_per_merge_request
,
class:
'form-check-input'
=
f
.
check_box
:disable_overriding_approvers_per_merge_request
,
class:
'form-check-input'
=
f
.
label
:disable_overriding_approvers_per_merge_request
,
class:
'form-check-label'
do
=
f
.
label
:disable_overriding_approvers_per_merge_request
,
class:
'form-check-label'
do
=
_
(
'Prevent users from modifying
merge request approvers list
'
)
=
_
(
'Prevent users from modifying
MR approval rules.
'
)
ee/changelogs/unreleased/mjang-MR-approval-instance-level.yml
0 → 100644
View file @
6b03c62b
---
title
:
Updated UI text to match style guidelines
merge_request
:
49871
author
:
type
:
other
ee/spec/features/admin/admin_merge_requests_approvals_spec.rb
View file @
6b03c62b
...
@@ -21,17 +21,17 @@ RSpec.describe 'Admin interacts with merge requests approvals settings' do
...
@@ -21,17 +21,17 @@ RSpec.describe 'Admin interacts with merge requests approvals settings' do
it
'updates instance-level merge request approval settings and enforces project-level ones'
do
it
'updates instance-level merge request approval settings and enforces project-level ones'
do
page
.
within
(
'.merge-request-approval-settings'
)
do
page
.
within
(
'.merge-request-approval-settings'
)
do
check
'Prevent
approval of merge requests by merge request author
'
check
'Prevent
MR approvals by author.
'
check
'Prevent
approval of merge requests by merge request committers
'
check
'Prevent
MR approvals from users who make commits to the MR.
'
check
'Prevent users from modifying
merge request approvers list
'
check
'Prevent users from modifying
MR approval rules.
'
click_button
(
'Save changes'
)
click_button
(
'Save changes'
)
end
end
visit
(
admin_push_rule_path
)
visit
(
admin_push_rule_path
)
expect
(
find_field
(
'Prevent
approval of merge requests by merge request author
'
)).
to
be_checked
expect
(
find_field
(
'Prevent
MR approvals by author.
'
)).
to
be_checked
expect
(
find_field
(
'Prevent
approval of merge requests by merge request committers
'
)).
to
be_checked
expect
(
find_field
(
'Prevent
MR approvals from users who make commits to the MR.
'
)).
to
be_checked
expect
(
find_field
(
'Prevent users from modifying
merge request approvers list
'
)).
to
be_checked
expect
(
find_field
(
'Prevent users from modifying
MR approval rules.
'
)).
to
be_checked
visit
edit_project_path
(
project
)
visit
edit_project_path
(
project
)
...
...
ee/spec/views/admin/push_rules/_merge_request_approvals.html.haml_spec.rb
View file @
6b03c62b
...
@@ -14,7 +14,7 @@ RSpec.describe 'admin/push_rules/_merge_request_approvals' do
...
@@ -14,7 +14,7 @@ RSpec.describe 'admin/push_rules/_merge_request_approvals' do
it
'shows settings form'
,
:aggregate_failures
do
it
'shows settings form'
,
:aggregate_failures
do
render
render
expect
(
rendered
).
to
have_content
(
'Merge request
s
approvals'
)
expect
(
rendered
).
to
have_content
(
'Merge request
(MR)
approvals'
)
expect
(
rendered
).
to
have_content
(
'
Settings to prevent self-approval across all projects
'
)
expect
(
rendered
).
to
have_content
(
'
Regulate approvals by authors/committers. Affects all projects.
'
)
end
end
end
end
locale/gitlab.pot
View file @
6b03c62b
...
@@ -17326,6 +17326,9 @@ msgstr ""
...
@@ -17326,6 +17326,9 @@ msgstr ""
msgid "Merge request %{mr_link} was reviewed by %{mr_author}"
msgid "Merge request %{mr_link} was reviewed by %{mr_author}"
msgstr ""
msgstr ""
msgid "Merge request (MR) approvals"
msgstr ""
msgid "Merge request approvals"
msgid "Merge request approvals"
msgstr ""
msgstr ""
...
@@ -17341,9 +17344,6 @@ msgstr ""
...
@@ -17341,9 +17344,6 @@ msgstr ""
msgid "Merge requests"
msgid "Merge requests"
msgstr ""
msgstr ""
msgid "Merge requests approvals"
msgstr ""
msgid "Merge requests are a place to propose changes you've made to a project and discuss those changes with others"
msgid "Merge requests are a place to propose changes you've made to a project and discuss those changes with others"
msgstr ""
msgstr ""
...
@@ -20983,6 +20983,9 @@ msgstr ""
...
@@ -20983,6 +20983,9 @@ msgstr ""
msgid "Prev"
msgid "Prev"
msgstr ""
msgstr ""
msgid "Prevent MR approvals by author."
msgstr ""
msgid "Prevent MR approvals by the author."
msgid "Prevent MR approvals by the author."
msgstr ""
msgstr ""
...
@@ -20992,12 +20995,6 @@ msgstr ""
...
@@ -20992,12 +20995,6 @@ msgstr ""
msgid "Prevent adding new members to project membership within this group"
msgid "Prevent adding new members to project membership within this group"
msgstr ""
msgstr ""
msgid "Prevent approval of merge requests by merge request author"
msgstr ""
msgid "Prevent approval of merge requests by merge request committers"
msgstr ""
msgid "Prevent environment from auto-stopping"
msgid "Prevent environment from auto-stopping"
msgstr ""
msgstr ""
...
@@ -21007,7 +21004,7 @@ msgstr ""
...
@@ -21007,7 +21004,7 @@ msgstr ""
msgid "Prevent users from changing their profile name"
msgid "Prevent users from changing their profile name"
msgstr ""
msgstr ""
msgid "Prevent users from modifying
merge request approvers list
"
msgid "Prevent users from modifying
MR approval rules.
"
msgstr ""
msgstr ""
msgid "Prevent users from performing write operations on GitLab while performing maintenance."
msgid "Prevent users from performing write operations on GitLab while performing maintenance."
...
@@ -22980,6 +22977,9 @@ msgstr ""
...
@@ -22980,6 +22977,9 @@ msgstr ""
msgid "Registry setup"
msgid "Registry setup"
msgstr ""
msgstr ""
msgid "Regulate approvals by authors/committers. Affects all projects."
msgstr ""
msgid "Reindexing status"
msgid "Reindexing status"
msgstr ""
msgstr ""
...
@@ -25420,9 +25420,6 @@ msgstr ""
...
@@ -25420,9 +25420,6 @@ msgstr ""
msgid "Settings related to the use and experience of using GitLab's Package Registry."
msgid "Settings related to the use and experience of using GitLab's Package Registry."
msgstr ""
msgstr ""
msgid "Settings to prevent self-approval across all projects in the instance. Only an administrator can modify these settings."
msgstr ""
msgid "Setup"
msgid "Setup"
msgstr ""
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment