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
e8d4cb74
Commit
e8d4cb74
authored
May 05, 2021
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of errors
parent
6929ff40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+2
-2
No files found.
lib/api/merge_requests.rb
View file @
e8d4cb74
...
@@ -208,14 +208,14 @@ module API
...
@@ -208,14 +208,14 @@ module API
options
[
:cache_context
]
=
proc
do
|
mr
|
options
[
:cache_context
]
=
proc
do
|
mr
|
[
[
mr
.
author
.
managed_by?
(
current_user
),
mr
.
author
.
managed_by?
(
current_user
),
mr
.
assignee
.
managed_by?
(
current_user
),
mr
.
assignee
&
.
managed_by?
(
current_user
),
mr
.
assignees
.
map
{
|
u
|
u
.
managed_by?
(
current_user
)
},
mr
.
assignees
.
map
{
|
u
|
u
.
managed_by?
(
current_user
)
},
[
mr
.
metrics
&
.
merged_by
,
mr
.
metrics
&
.
latest_closed_by
].
compact
.
map
{
|
u
|
u
.
managed_by?
(
current_user
)
},
[
mr
.
metrics
&
.
merged_by
,
mr
.
metrics
&
.
latest_closed_by
].
compact
.
map
{
|
u
|
u
.
managed_by?
(
current_user
)
},
options
.
values_at
(
:render_html
,
:with_labels_details
,
:skip_merge_status_recheck
)
options
.
values_at
(
:render_html
,
:with_labels_details
,
:skip_merge_status_recheck
)
]
]
end
end
present_cached
merge_requests
,
options
present_cached
merge_requests
,
**
options
else
else
present
merge_requests
,
options
present
merge_requests
,
options
end
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