Commit a25b1c41 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Merge branch '347309-filter-license_scanning_jobs-out-of-service-ping-payload' into 'master'

Filter `license_scanning_jobs` out of Service Ping payload

See merge request gitlab-org/gitlab!78257
parents d2a595e5 61252b93
......@@ -161,7 +161,7 @@ module EE
def security_products_usage
results = SECURE_PRODUCT_TYPES.each_with_object({}) do |(secure_type, attribs), response|
next if secure_type == :license_management
next if secure_type.in?([:license_management, :license_scanning])
response[attribs[:name]] = count(::Ci::Build.where(name: secure_type)) # rubocop:disable CodeReuse/ActiveRecord
end
......
......@@ -8,7 +8,6 @@ RSpec.describe 'Every metric definition' do
let(:usage_ping) { Gitlab::UsageData.uncached_data }
let(:ignored_usage_ping_key_patterns) do
%w(
counts.license_scanning_jobs
license_add_ons
testing_total_unique_counts
user_auth_by_provider
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment