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
7970c1bb
Commit
7970c1bb
authored
Dec 03, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove suggested approvers
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/284825
parent
71e64878
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
ee/app/views/shared/issuable/_approver_suggestion.haml
ee/app/views/shared/issuable/_approver_suggestion.haml
+0
-4
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
+0
-15
No files found.
ee/app/views/shared/issuable/_approver_suggestion.haml
View file @
7970c1bb
...
...
@@ -13,10 +13,6 @@
=
sprite_icon
(
'spinner'
,
size:
24
,
css_class:
'gl-spinner'
)
-
if
can_update_approvers
-
approver_presenter
=
MergeRequestApproverPresenter
.
new
(
issuable
,
skip_user:
current_user
)
.form-text.text-muted.suggested-approvers
-
if
approver_presenter
.
any?
Suggested approvers:
=
approver_presenter
.
render
-
if
approver_presenter
.
show_code_owner_tips?
.form-text.text-muted
=
_
(
'Tip: add a'
)
...
...
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
View file @
7970c1bb
...
...
@@ -22,27 +22,12 @@ RSpec.describe 'shared/issuable/_approvals.html.haml' do
end
context
'has no approvers'
do
context
'when mr_collapsed_approval_rules feature flag is off'
do
before
do
stub_feature_flags
(
mr_collapsed_approval_rules:
false
)
render
'shared/issuable/approvals'
,
form:
form
,
issuable:
merge_request
,
presenter:
presenter
end
it
'shows suggested approvers'
do
expect
(
rendered
).
to
have_css
(
'.suggested-approvers'
)
end
end
context
'can not override approvers'
do
before
do
allow
(
view
).
to
receive
(
:can?
).
with
(
user
,
:update_approvers
,
merge_request
).
and_return
(
false
)
render
'shared/issuable/approvals'
,
form:
form
,
issuable:
merge_request
,
presenter:
presenter
end
it
'hides suggested approvers'
do
expect
(
rendered
).
not_to
have_css
(
'.suggested-approvers'
)
end
it
'hides select approvers field'
do
expect
(
rendered
).
not_to
have_css
(
'#merge_request_approver_ids'
)
end
...
...
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