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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
46f6a4e0
Commit
46f6a4e0
authored
Sep 05, 2019
by
Can Eldem
Committed by
Rémy Coutable
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend License Compliance entity for Pipelines and MR view
parent
5f813436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/merge_request.rb
app/models/merge_request.rb
+2
-2
No files found.
app/models/merge_request.rb
View file @
46f6a4e0
...
...
@@ -1238,9 +1238,9 @@ class MergeRequest < ApplicationRecord
compare_reports
(
Ci
::
CompareTestReportsService
)
end
def
compare_reports
(
service_class
)
def
compare_reports
(
service_class
,
current_user
=
nil
)
with_reactive_cache
(
service_class
.
name
)
do
|
data
|
unless
service_class
.
new
(
project
)
unless
service_class
.
new
(
project
,
current_user
)
.
latest?
(
base_pipeline
,
actual_head_pipeline
,
data
)
raise
InvalidateReactiveCache
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