Commit ca21fe98 authored by Robert May's avatar Robert May

Merge branch '330544-deprecate-monthly-incident-sla-metric' into 'master'

Deprecate monthly incident_sla_enabled metric

See merge request gitlab-org/gitlab!66025
parents fdb42073 43fea56d
......@@ -22436,7 +22436,7 @@ Group: `group::monitor`
Data Category: `Optional`
Status: `data_available`
Status: `deprecated`
Tiers: `premium`, `ultimate`
......
......@@ -7,7 +7,7 @@ product_stage:
product_group: group::monitor
product_category: metrics
value_type: number
status: data_available
status: deprecated
time_frame: all
data_source: database
distribution:
......
......@@ -320,7 +320,7 @@ module EE
def usage_activity_by_stage_monitor(time_period)
super.merge({
operations_dashboard_users_with_projects_added: distinct_count(UsersOpsDashboardProject.joins(:user).merge(::User.active).where(time_period), :user_id),
projects_incident_sla_enabled: count(::Project.with_enabled_incident_sla)
projects_incident_sla_enabled: time_period.present? ? ::Gitlab::UsageData::DEPRECATED_VALUE : count(::Project.with_enabled_incident_sla)
})
end
......
......@@ -477,8 +477,7 @@ RSpec.describe Gitlab::UsageData do
projects_incident_sla_enabled: 2
)
expect(described_class.usage_activity_by_stage_monitor(described_class.monthly_time_range_db_params)).to include(
operations_dashboard_users_with_projects_added: 1,
projects_incident_sla_enabled: 2
operations_dashboard_users_with_projects_added: 1
)
end
end
......
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