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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5ee58c1c
Commit
5ee58c1c
authored
Oct 17, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add short_revision and use total_size
parent
57d331d7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
5 deletions
+15
-5
app/assets/javascripts/registry/stores/mutations.js
app/assets/javascripts/registry/stores/mutations.js
+1
-1
app/serializers/container_tag_entity.rb
app/serializers/container_tag_entity.rb
+1
-1
changelogs/unreleased/kt-bug-fix-revision-and-size-for-container-registry.yml
...d/kt-bug-fix-revision-and-size-for-container-registry.yml
+5
-0
spec/fixtures/api/schemas/registry/tag.json
spec/fixtures/api/schemas/registry/tag.json
+5
-0
spec/javascripts/registry/mock_data.js
spec/javascripts/registry/mock_data.js
+2
-2
spec/serializers/container_tag_entity_spec.rb
spec/serializers/container_tag_entity_spec.rb
+1
-1
No files found.
app/assets/javascripts/registry/stores/mutations.js
View file @
5ee58c1c
...
...
@@ -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
,
...
...
app/serializers/container_tag_entity.rb
View file @
5ee58c1c
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
)
...
...
changelogs/unreleased/kt-bug-fix-revision-and-size-for-container-registry.yml
0 → 100644
View file @
5ee58c1c
---
title
:
Fix revision and total size missing for Container Registry
merge_request
:
author
:
type
:
fixed
spec/fixtures/api/schemas/registry/tag.json
View file @
5ee58c1c
...
...
@@ -14,6 +14,11 @@
"revision"
:
{
"type"
:
"string"
},
"short_revision"
:
{
"type"
:
"string"
,
"minLength"
:
8
,
"maxLength"
:
8
},
"total_size"
:
{
"type"
:
"integer"
},
...
...
spec/javascripts/registry/mock_data.js
View file @
5ee58c1c
...
...
@@ -26,7 +26,7 @@ export const registryServerResponse = [
name
:
'
centos7
'
,
short_revision
:
'
b118ab5b0
'
,
revision
:
'
b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43
'
,
size
:
679
,
total_
size
:
679
,
layers
:
19
,
location
:
'
location
'
,
created_at
:
1505828744434
,
...
...
@@ -36,7 +36,7 @@ export const registryServerResponse = [
name
:
'
centos6
'
,
short_revision
:
'
b118ab5b0
'
,
revision
:
'
b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43
'
,
size
:
679
,
total_
size
:
679
,
layers
:
19
,
location
:
'
location
'
,
created_at
:
1505828744434
,
...
...
spec/serializers/container_tag_entity_spec.rb
View file @
5ee58c1c
...
...
@@ -22,7 +22,7 @@ describe ContainerTagEntity do
end
it
'exposes required informations'
do
expect
(
subject
).
to
include
(
:name
,
:location
,
:revision
,
:total_size
,
:created_at
)
expect
(
subject
).
to
include
(
:name
,
:location
,
:revision
,
:
short_revision
,
:
total_size
,
:created_at
)
end
context
'when user can manage repositories'
do
...
...
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