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
71de1f5d
Commit
71de1f5d
authored
Dec 07, 2020
by
Harrison Brock
Committed by
Stan Hu
Dec 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project_id in the deleteTagsService
parent
ae991fd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/services/projects/container_repository/delete_tags_service.rb
...ices/projects/container_repository/delete_tags_service.rb
+1
-0
spec/services/projects/container_repository/delete_tags_service_spec.rb
...projects/container_repository/delete_tags_service_spec.rb
+3
-1
No files found.
app/services/projects/container_repository/delete_tags_service.rb
View file @
71de1f5d
...
@@ -36,6 +36,7 @@ module Projects
...
@@ -36,6 +36,7 @@ module Projects
def
log_response
(
response
)
def
log_response
(
response
)
log_data
=
LOG_DATA_BASE
.
merge
(
log_data
=
LOG_DATA_BASE
.
merge
(
container_repository_id:
@container_repository
.
id
,
container_repository_id:
@container_repository
.
id
,
project_id:
@container_repository
.
project_id
,
message:
'deleted tags'
,
message:
'deleted tags'
,
deleted_tags_count:
response
[
:deleted
]
&
.
size
deleted_tags_count:
response
[
:deleted
]
&
.
size
).
compact
).
compact
...
...
spec/services/projects/container_repository/delete_tags_service_spec.rb
View file @
71de1f5d
...
@@ -20,6 +20,7 @@ RSpec.describe Projects::ContainerRepository::DeleteTagsService do
...
@@ -20,6 +20,7 @@ RSpec.describe Projects::ContainerRepository::DeleteTagsService do
service_class:
'Projects::ContainerRepository::DeleteTagsService'
,
service_class:
'Projects::ContainerRepository::DeleteTagsService'
,
message:
'deleted tags'
,
message:
'deleted tags'
,
container_repository_id:
repository
.
id
,
container_repository_id:
repository
.
id
,
project_id:
repository
.
project_id
,
deleted_tags_count:
tags
.
size
deleted_tags_count:
tags
.
size
)
)
...
@@ -32,7 +33,8 @@ RSpec.describe Projects::ContainerRepository::DeleteTagsService do
...
@@ -32,7 +33,8 @@ RSpec.describe Projects::ContainerRepository::DeleteTagsService do
log_data
=
{
log_data
=
{
service_class:
'Projects::ContainerRepository::DeleteTagsService'
,
service_class:
'Projects::ContainerRepository::DeleteTagsService'
,
message:
message
,
message:
message
,
container_repository_id:
repository
.
id
container_repository_id:
repository
.
id
,
project_id:
repository
.
project_id
}
}
log_data
.
merge!
(
extra_log
)
if
extra_log
.
any?
log_data
.
merge!
(
extra_log
)
if
extra_log
.
any?
...
...
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