Commit 6cf2c6c9 authored by Robert Speicher's avatar Robert Speicher

Merge branch '340847-remove-deprecated-metric-status-5' into 'master'

Remove projects_incident_sla_enabledmonthly deprecated metric

See merge request gitlab-org/gitlab!76709
parents 0b93a127 a1243a97
......@@ -7,7 +7,7 @@ product_stage: monitor
product_group: group::monitor
product_category: metrics
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -326,10 +326,13 @@ module EE
override :usage_activity_by_stage_monitor
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: time_period.present? ? ::Gitlab::UsageData::DEPRECATED_VALUE : count(::Project.with_enabled_incident_sla)
data = super.merge({
operations_dashboard_users_with_projects_added: distinct_count(UsersOpsDashboardProject.joins(:user).merge(::User.active).where(time_period), :user_id)
})
data[:projects_incident_sla_enabled] = count(::Project.with_enabled_incident_sla) if time_period.blank?
data
end
# Omitted because no user, creator or author associated: `boards`, `labels`, `milestones`, `uploads`
......
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