Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/concerns/packages/debian_package_endpoints.rb')
-rw-r--r--lib/api/concerns/packages/debian_package_endpoints.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/api/concerns/packages/debian_package_endpoints.rb b/lib/api/concerns/packages/debian_package_endpoints.rb
index 25c97932e31..45290cb3e44 100644
--- a/lib/api/concerns/packages/debian_package_endpoints.rb
+++ b/lib/api/concerns/packages/debian_package_endpoints.rb
@@ -13,7 +13,6 @@ module API
component: ::Packages::Debian::COMPONENT_REGEX,
architecture: ::Packages::Debian::ARCHITECTURE_REGEX
}.freeze
- LIST_PACKAGE = 'list_package'
included do
feature_category :package_registry
@@ -41,8 +40,6 @@ module API
package_file = distribution_from!(project).package_files.with_file_name(params[:file_name]).last!
- track_debian_package_event 'pull_package'
-
present_package_file!(package_file)
end
@@ -73,22 +70,8 @@ module API
no_content! # empty component files are not always persisted in DB
end
- track_debian_package_event LIST_PACKAGE
-
present_carrierwave_file!(component_file.file)
end
-
- def track_debian_package_event(action)
- if project_or_group.is_a?(Project)
- project = project_or_group
- namespace = project_or_group.namespace
- else
- project = nil
- namespace = project_or_group
- end
-
- track_package_event(action, :debian, project: project, namespace: namespace, user: current_user)
- end
end
rescue_from ArgumentError do |e|
@@ -146,7 +129,6 @@ module API
get 'Release' do
distribution = distribution_from!(project_or_group)
- track_debian_package_event LIST_PACKAGE
present_carrierwave_file!(distribution.file)
end
@@ -166,7 +148,6 @@ module API
get 'InRelease' do
distribution = distribution_from!(project_or_group)
- track_debian_package_event LIST_PACKAGE
present_carrierwave_file!(distribution.signed_file)
end