Commit 6b03c62b authored by Mike Jang's avatar Mike Jang Committed by Ash McKenzie

Set up instance-level MR approval UI text

parent 2a9cfa06
---
title: Updated UI text to match style guidelines
merge_request: 49871
author:
type: other
...@@ -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 requests 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 settings.') = _('Regulate approvals by authors/committers. Affects all projects.')
.settings-content .settings-content
%hr.clearfix.mt-0 %hr.clearfix.mt-0
......
...@@ -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.')
---
title: Updated UI text to match style guidelines
merge_request: 49871
author:
type: other
...@@ -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)
......
...@@ -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 requests 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
...@@ -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 ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment