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
07438f88
Commit
07438f88
authored
Aug 28, 2019
by
Samantha Ming
Committed by
Filipa Lacerda
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Approvers field and modal title
- Change approvers to "Approval rule" - Change members to "Approvers"
parent
38ca8915
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
23 deletions
+31
-23
ee/app/assets/javascripts/approvals/components/app.vue
ee/app/assets/javascripts/approvals/components/app.vue
+1
-1
ee/app/assets/javascripts/approvals/components/modal_rule_create.vue
...ts/javascripts/approvals/components/modal_rule_create.vue
+1
-1
ee/app/assets/javascripts/approvals/components/rule_form.vue
ee/app/assets/javascripts/approvals/components/rule_form.vue
+1
-1
ee/app/assets/javascripts/approvals/components/rules.vue
ee/app/assets/javascripts/approvals/components/rules.vue
+1
-1
ee/app/views/shared/issuable/_approvals.html.haml
ee/app/views/shared/issuable/_approvals.html.haml
+1
-1
ee/changelogs/unreleased/65629-rename-approvers.yml
ee/changelogs/unreleased/65629-rename-approvers.yml
+5
-0
ee/spec/features/merge_request/user_edits_approval_rules_mr_spec.rb
...atures/merge_request/user_edits_approval_rules_mr_spec.rb
+3
-3
ee/spec/features/merge_request/user_sets_approvers_spec.rb
ee/spec/features/merge_request/user_sets_approvers_spec.rb
+5
-5
ee/spec/features/projects/settings/merge_requests_settings_spec.rb
...eatures/projects/settings/merge_requests_settings_spec.rb
+3
-3
ee/spec/javascripts/approvals/components/app_spec.js
ee/spec/javascripts/approvals/components/app_spec.js
+1
-1
ee/spec/javascripts/approvals/components/modal_rule_create_spec.js
...avascripts/approvals/components/modal_rule_create_spec.js
+4
-4
locale/gitlab.pot
locale/gitlab.pot
+5
-2
No files found.
ee/app/assets/javascripts/approvals/components/app.vue
View file @
07438f88
...
...
@@ -49,7 +49,7 @@ export default {
<gl-loading-icon
v-if=
"isLoading"
/>
<div
v-if=
"settings.allowMultiRule"
class=
"d-flex"
>
<gl-button
class=
"ml-auto btn-info btn-inverted"
@
click=
"openCreateModal(null)"
>
{{
__
(
'
Add approv
ers
'
)
__
(
'
Add approv
al rule
'
)
}}
</gl-button>
</div>
</div>
...
...
ee/app/assets/javascripts/approvals/components/modal_rule_create.vue
View file @
07438f88
...
...
@@ -20,7 +20,7 @@ export default {
rule
:
'
data
'
,
}),
title
()
{
return
this
.
rule
?
__
(
'
Update approv
ers
'
)
:
__
(
'
Add approvers
'
);
return
this
.
rule
?
__
(
'
Update approv
al rule
'
)
:
__
(
'
Add approval rule
'
);
},
},
methods
:
{
...
...
ee/app/assets/javascripts/approvals/components/rule_form.vue
View file @
07438f88
...
...
@@ -252,7 +252,7 @@ export default {
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"label-bold"
>
{{
s__
(
'
ApprovalRule|
Memb
ers
'
)
}}
</label>
<label
class=
"label-bold"
>
{{
s__
(
'
ApprovalRule|
Approv
ers
'
)
}}
</label>
<div
class=
"d-flex align-items-start"
>
<div
class=
"w-100"
>
<approvers-select
...
...
ee/app/assets/javascripts/approvals/components/rules.vue
View file @
07438f88
...
...
@@ -3,7 +3,7 @@ import { s__ } from '~/locale';
const
HEADERS
=
{
name
:
s__
(
'
ApprovalRule|Name
'
),
members
:
s__
(
'
ApprovalRule|
Memb
ers
'
),
members
:
s__
(
'
ApprovalRule|
Approv
ers
'
),
approvalsRequired
:
s__
(
'
ApprovalRule|No. approvals required
'
),
};
...
...
ee/app/views/shared/issuable/_approvals.html.haml
View file @
07438f88
...
...
@@ -9,7 +9,7 @@
.form-group.row
.col-sm-2.col-form-label
=
form
.
label
:approver_ids
,
"Approv
er
s"
=
form
.
label
:approver_ids
,
"Approv
al rule
s"
.col-sm-10
#js-mr-approvals-input
{
data:
{
'project_id'
:
@target_project
.
id
,
'can_edit'
:
can?
(
current_user
,
:update_approvers
,
issuable
).
to_s
,
...
...
ee/changelogs/unreleased/65629-rename-approvers.yml
0 → 100644
View file @
07438f88
---
title
:
Rename Approvers field and modal title
merge_request
:
15461
author
:
type
:
other
ee/spec/features/merge_request/user_edits_approval_rules_mr_spec.rb
View file @
07438f88
...
...
@@ -51,13 +51,13 @@ describe 'Merge request > User edits MR with approval rules', :js do
it
"allows user to create approval rule"
do
rule_name
=
"Custom Approval Rule"
click_button
"Add approv
ers
"
click_button
"Add approv
al rule
"
fill_in
"Rule name"
,
with:
rule_name
add_approval_rule_member
(
'user'
,
approver
.
name
)
find
(
"
#{
modal_id
}
button"
,
text:
'Add approv
ers
'
).
click
find
(
"
#{
modal_id
}
button"
,
text:
'Add approv
al rule
'
).
click
wait_for_requests
expect
(
page_rule_names
.
last
).
to
have_text
(
rule_name
)
...
...
@@ -69,7 +69,7 @@ describe 'Merge request > User edits MR with approval rules', :js do
before
do
group
.
add_developer
create
(
:user
)
click_button
"Add approv
ers
"
click_button
"Add approv
al rule
"
end
it
"with empty search, does not show public group"
do
...
...
ee/spec/features/merge_request/user_sets_approvers_spec.rb
View file @
07438f88
...
...
@@ -83,7 +83,7 @@ describe 'Merge request > User sets approvers', :js do
find
(
'.select2-results .user-result'
,
text:
group
.
name
).
click
close_approver_select
click_button
'Add'
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
click_on
(
"Submit merge request"
)
wait_for_all_requests
...
...
@@ -109,7 +109,7 @@ describe 'Merge request > User sets approvers', :js do
expect
(
page
).
to
have_css
(
'.content-list li'
,
count:
1
)
end
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
click_on
(
"Submit merge request"
)
wait_for_all_requests
click_on
(
"View eligible approvers"
)
if
page
.
has_button?
(
"View eligible approvers"
)
...
...
@@ -150,7 +150,7 @@ describe 'Merge request > User sets approvers', :js do
find
(
'.select2-results .user-result'
,
text:
group
.
name
).
click
close_approver_select
click_button
'Add'
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
click_on
(
"Save changes"
)
wait_for_all_requests
...
...
@@ -177,7 +177,7 @@ describe 'Merge request > User sets approvers', :js do
expect
(
page
).
to
have_css
(
'.content-list li'
,
count:
1
)
end
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
click_on
(
"Save changes"
)
wait_for_all_requests
...
...
@@ -207,7 +207,7 @@ describe 'Merge request > User sets approvers', :js do
fill_in
'No. approvals required'
,
with:
'3'
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
click_on
(
'Save changes'
)
wait_for_all_requests
...
...
ee/spec/features/projects/settings/merge_requests_settings_spec.rb
View file @
07438f88
...
...
@@ -40,7 +40,7 @@ describe 'Project settings > [EE] Merge Requests', :js do
expect
(
find
(
'.select2-results'
)).
not_to
have_content
(
user
.
name
)
close_approver_select
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
wait_for_requests
expect_avatar
(
find
(
'.js-members'
),
user
)
...
...
@@ -60,7 +60,7 @@ describe 'Project settings > [EE] Merge Requests', :js do
expect
(
find
(
'.content-list'
)).
to
have_content
(
group
.
name
)
click_button
'Update approv
ers
'
click_button
'Update approv
al rule
'
wait_for_requests
expect_avatar
(
find
(
'.js-members'
),
group
.
users
)
...
...
@@ -81,7 +81,7 @@ describe 'Project settings > [EE] Merge Requests', :js do
open_modal
remove_approver
(
group
.
name
)
click_button
"Update approv
ers
"
click_button
"Update approv
al rule
"
wait_for_requests
expect_avatar
(
find
(
'.js-members'
),
[
non_group_approver
])
...
...
ee/spec/javascripts/approvals/components/app_spec.js
View file @
07438f88
...
...
@@ -135,7 +135,7 @@ describe('EE Approvals App', () => {
const
button
=
findAddButton
();
expect
(
button
.
exists
()).
toBe
(
true
);
expect
(
button
.
text
()).
toBe
(
'
Add approv
ers
'
);
expect
(
button
.
text
()).
toBe
(
'
Add approv
al rule
'
);
});
it
(
'
opens create modal when add button is clicked
'
,
()
=>
{
...
...
ee/spec/javascripts/approvals/components/modal_rule_create_spec.js
View file @
07438f88
...
...
@@ -60,8 +60,8 @@ describe('Approvals ModalRuleCreate', () => {
expect
(
modal
.
props
(
'
modalModule
'
)).
toEqual
(
MODAL_MODULE
);
expect
(
modal
.
props
(
'
modalId
'
)).
toEqual
(
TEST_MODAL_ID
);
expect
(
modal
.
attributes
(
'
title
'
)).
toEqual
(
'
Add approv
ers
'
);
expect
(
modal
.
attributes
(
'
ok-title
'
)).
toEqual
(
'
Add approv
ers
'
);
expect
(
modal
.
attributes
(
'
title
'
)).
toEqual
(
'
Add approv
al rule
'
);
expect
(
modal
.
attributes
(
'
ok-title
'
)).
toEqual
(
'
Add approv
al rule
'
);
});
it
(
'
renders form
'
,
()
=>
{
...
...
@@ -99,8 +99,8 @@ describe('Approvals ModalRuleCreate', () => {
expect
(
modal
.
exists
()).
toBe
(
true
);
expect
(
modal
.
attributes
(
'
title
'
)).
toEqual
(
'
Update approv
ers
'
);
expect
(
modal
.
attributes
(
'
ok-title
'
)).
toEqual
(
'
Update approv
ers
'
);
expect
(
modal
.
attributes
(
'
title
'
)).
toEqual
(
'
Update approv
al rule
'
);
expect
(
modal
.
attributes
(
'
ok-title
'
)).
toEqual
(
'
Update approv
al rule
'
);
});
it
(
'
renders form
'
,
()
=>
{
...
...
locale/gitlab.pot
View file @
07438f88
...
...
@@ -866,6 +866,9 @@ msgstr ""
msgid "Add an issue"
msgstr ""
msgid "Add approval rule"
msgstr ""
msgid "Add approvers"
msgstr ""
...
...
@@ -1650,7 +1653,7 @@ msgstr[1] ""
msgid "ApprovalRule|All members with Developer role or higher and code owners (if any)"
msgstr ""
msgid "ApprovalRule|
Memb
ers"
msgid "ApprovalRule|
Approv
ers"
msgstr ""
msgid "ApprovalRule|Name"
...
...
@@ -16235,7 +16238,7 @@ msgstr ""
msgid "Update all"
msgstr ""
msgid "Update approv
ers
"
msgid "Update approv
al rule
"
msgstr ""
msgid "Update failed"
...
...
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