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
Léo-Paul Géneau
gitlab-ce
Commits
9e6f3774
Commit
9e6f3774
authored
May 01, 2019
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move JobArtifactEntity to JobArtifactReportEntity
parent
31bd09a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/serializers/build_details_entity.rb
app/serializers/build_details_entity.rb
+1
-1
app/serializers/job_artifact_report_entity.rb
app/serializers/job_artifact_report_entity.rb
+1
-1
spec/serializers/job_artifact_report_entity_spec.rb
spec/serializers/job_artifact_report_entity_spec.rb
+1
-1
No files found.
app/serializers/build_details_entity.rb
View file @
9e6f3774
...
...
@@ -42,7 +42,7 @@ class BuildDetailsEntity < JobEntity
end
end
expose
:reports
,
if:
->
(
*
)
{
can?
(
current_user
,
:read_build
,
build
)
},
using:
JobArtifactEntity
do
|
build
|
expose
:reports
,
if:
->
(
*
)
{
can?
(
current_user
,
:read_build
,
build
)
},
using:
JobArtifact
Report
Entity
do
|
build
|
build
.
job_artifacts
.
merge
(
Ci
::
JobArtifact
.
with_all_reports
)
end
...
...
app/serializers/job_artifact_entity.rb
→
app/serializers/job_artifact_
report_
entity.rb
View file @
9e6f3774
# frozen_string_literal: true
class
JobArtifactEntity
<
Grape
::
Entity
class
JobArtifact
Report
Entity
<
Grape
::
Entity
include
RequestAwareEntity
expose
:file_type
...
...
spec/serializers/job_artifact_entity_spec.rb
→
spec/serializers/job_artifact_
report_
entity_spec.rb
View file @
9e6f3774
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
describe
JobArtifactEntity
do
describe
JobArtifact
Report
Entity
do
let
(
:report
)
{
create
(
:ci_job_artifact
,
:codequality
)
}
let
(
:entity
)
{
described_class
.
new
(
report
,
request:
double
)
}
...
...
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