summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-11-21 14:00:06 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-11-21 14:00:06 +0000
commit2f3374be4cc53167a862cde7b9fd202d213f7f7a (patch)
treee9e3cf46d1027122215b3fb79fb0620d345b3af9 /lib
parent5d5da05239f668349d8b98d64b0baac1c4a3e3dc (diff)
parentc742d3ba98c7454060068b543cfc1fca926d9be5 (diff)
downloadgitlab-ce-2f3374be4cc53167a862cde7b9fd202d213f7f7a.tar.gz
Merge branch 'optimise-job-request' into 'master'
Use cached size when passing artifacts to Runner See merge request gitlab-org/gitlab-ce!23228
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 5572e86985c..cff05643f3b 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -1142,7 +1142,8 @@ module API
end
class JobArtifactFile < Grape::Entity
- expose :filename, :size
+ expose :filename
+ expose :cached_size, as: :size
end
class JobArtifact < Grape::Entity