summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-10-17 16:58:28 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-10-17 16:58:28 +0200
commit5ee58c1c0699530612dcd2abcb2a07f041f0fca9 (patch)
tree5e7c14faee2bcbc95d9fbb746fc1193382837c85 /app
parent57d331d7514f36d5805a68ac7523d6a075d3e7a7 (diff)
downloadgitlab-ce-5ee58c1c0699530612dcd2abcb2a07f041f0fca9.tar.gz
Add short_revision and use total_size
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/registry/stores/mutations.js2
-rw-r--r--app/serializers/container_tag_entity.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/registry/stores/mutations.js b/app/assets/javascripts/registry/stores/mutations.js
index e40382e7afc..208c3c39866 100644
--- a/app/assets/javascripts/registry/stores/mutations.js
+++ b/app/assets/javascripts/registry/stores/mutations.js
@@ -38,7 +38,7 @@ export default {
tag: element.name,
revision: element.revision,
shortRevision: element.short_revision,
- size: element.size,
+ size: element.total_size,
layers: element.layers,
location: element.location,
createdAt: element.created_at,
diff --git a/app/serializers/container_tag_entity.rb b/app/serializers/container_tag_entity.rb
index ec1fc349586..26a68c43807 100644
--- a/app/serializers/container_tag_entity.rb
+++ b/app/serializers/container_tag_entity.rb
@@ -1,7 +1,7 @@
class ContainerTagEntity < Grape::Entity
include RequestAwareEntity
- expose :name, :location, :revision, :total_size, :created_at
+ expose :name, :location, :revision, :short_revision, :total_size, :created_at
expose :destroy_path, if: -> (*) { can_destroy? } do |tag|
project_registry_repository_tag_path(project, tag.repository, tag.name, format: :json)