diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 09:06:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 09:06:09 +0000 |
commit | 77a7772c3bdb03d92cbc154f6b1a762953cc7c19 (patch) | |
tree | b841c2233afb01d1b6cc7dd4023f2b677ec19eb3 /app/controllers/projects/registry | |
parent | f7234a0894db99c7ade3cf29c1b467aa4807cc41 (diff) | |
download | gitlab-ce-77a7772c3bdb03d92cbc154f6b1a762953cc7c19.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/registry')
-rw-r--r-- | app/controllers/projects/registry/repositories_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/projects/registry/tags_controller.rb | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb index e205e2fd4f8..9405fd526ae 100644 --- a/app/controllers/projects/registry/repositories_controller.rb +++ b/app/controllers/projects/registry/repositories_controller.rb @@ -8,6 +8,7 @@ module Projects def index @images = project.container_repositories + track_event(:list_repositories) respond_to do |format| format.html @@ -21,6 +22,7 @@ module Projects def destroy DeleteContainerRepositoryWorker.perform_async(current_user.id, image.id) + track_event(:delete_repository) respond_to do |format| format.json { head :no_content } diff --git a/app/controllers/projects/registry/tags_controller.rb b/app/controllers/projects/registry/tags_controller.rb index b5ee0ba9beb..e572c56adf5 100644 --- a/app/controllers/projects/registry/tags_controller.rb +++ b/app/controllers/projects/registry/tags_controller.rb @@ -8,6 +8,7 @@ module Projects LIMIT = 15 def index + track_event(:list_tags) respond_to do |format| format.json do render json: ContainerTagsSerializer @@ -22,6 +23,7 @@ module Projects result = Projects::ContainerRepository::DeleteTagsService .new(image.project, current_user, tags: [params[:id]]) .execute(image) + track_event(:delete_tag) respond_to do |format| format.json { head(result[:status] == :success ? :ok : bad_request) } @@ -43,6 +45,7 @@ module Projects result = Projects::ContainerRepository::DeleteTagsService .new(image.project, current_user, tags: tag_names) .execute(image) + track_event(:delete_tag_bulk) respond_to do |format| format.json { head(result[:status] == :success ? :no_content : :bad_request) } |