BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b3cc7385
Commit
b3cc7385
authored
Oct 19, 2017
by
Grzegorz Bizon
Committed by
Winnie Hellmann
Oct 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'sh-fix-broken-docker-delete' into 'master'
Fix inability to delete container registry tags Closes #39260 See merge request gitlab-org/gitlab-ce!14947 (cherry picked from commit
83f5955e
)
b7e35033
Fix inability to delete container registry tags
de57492d
Fix broken function invocation
parent
415483fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
collapsible_container.vue
...javascripts/registry/components/collapsible_container.vue
+1
-1
table_registry.vue
...assets/javascripts/registry/components/table_registry.vue
+1
-1
container_tag_entity.rb
app/serializers/container_tag_entity.rb
+1
-1
project.rb
config/routes/project.rb
+7
-2
No files found.
app/assets/javascripts/registry/components/collapsible_container.vue
View file @
b3cc7385
...
...
@@ -57,7 +57,7 @@
},
showError
(
message
)
{
Flash
(
(
errorMessages
[
message
])
);
Flash
(
errorMessages
[
message
]
);
},
},
};
...
...
app/assets/javascripts/registry/components/table_registry.vue
View file @
b3cc7385
...
...
@@ -57,7 +57,7 @@
},
showError
(
message
)
{
Flash
(
(
errorMessages
[
message
])
);
Flash
(
errorMessages
[
message
]
);
},
},
};
...
...
app/serializers/container_tag_entity.rb
View file @
b3cc7385
...
...
@@ -4,7 +4,7 @@ class ContainerTagEntity < Grape::Entity
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
)
project_registry_repository_tag_path
(
project
,
tag
.
repository
,
tag
.
name
)
end
private
...
...
config/routes/project.rb
View file @
b3cc7385
...
...
@@ -281,8 +281,13 @@ constraints(ProjectUrlConstrainer.new) do
namespace
:registry
do
resources
:repository
,
only:
[]
do
resources
:tags
,
only:
[
:index
,
:destroy
],
constraints:
{
id:
Gitlab
::
Regex
.
container_registry_tag_regex
}
# We default to JSON format in the controller to avoid ambiguity.
# `latest.json` could either be a request for a tag named `latest`
# in JSON format, or a request for tag named `latest.json`.
scope
format:
false
do
resources
:tags
,
only:
[
:index
,
:destroy
],
constraints:
{
id:
Gitlab
::
Regex
.
container_registry_tag_regex
}
end
end
end
...
...
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