diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-20 11:05:15 +0100 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-20 11:05:37 +0100 |
commit | c742d3ba98c7454060068b543cfc1fca926d9be5 (patch) | |
tree | dbfb05dc8ddbf375e3cd94fd1acdc7f8c42fa559 | |
parent | 624ec62238c1d26ef2745c1147edffde67a2b4e6 (diff) | |
download | gitlab-ce-c742d3ba98c7454060068b543cfc1fca926d9be5.tar.gz |
Use cached size when passing artifacts to Runneroptimise-job-request
-rw-r--r-- | changelogs/unreleased/optimise-job-request.yml | 5 | ||||
-rw-r--r-- | lib/api/entities.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/changelogs/unreleased/optimise-job-request.yml b/changelogs/unreleased/optimise-job-request.yml new file mode 100644 index 00000000000..e1265841b48 --- /dev/null +++ b/changelogs/unreleased/optimise-job-request.yml @@ -0,0 +1,5 @@ +--- +title: Use cached size when passing artifacts to Runner +merge_request: +author: +type: performance 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 |