Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1243a97
Commit
a1243a97
authored
Dec 16, 2021
by
Nikolay Belokolodov
Committed by
Robert Speicher
Dec 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove projects_incident_sla_enabledmonthly deprecated metric
parent
449a370b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
ee/config/metrics/counts_all/20210216183753_projects_incident_sla_enabled.yml
...unts_all/20210216183753_projects_incident_sla_enabled.yml
+1
-1
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+6
-3
No files found.
ee/config/metrics/counts_all/20210216183753_projects_incident_sla_enabled.yml
View file @
a1243a97
...
...
@@ -7,7 +7,7 @@ product_stage: monitor
product_group
:
group::monitor
product_category
:
metrics
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
ee/lib/ee/gitlab/usage_data.rb
View file @
a1243a97
...
...
@@ -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`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment