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
67aa3e38
Commit
67aa3e38
authored
Aug 12, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move query inline
parent
a1f2e830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-2
No files found.
lib/gitlab/usage_data.rb
View file @
67aa3e38
...
...
@@ -63,7 +63,6 @@ module Gitlab
# rubocop: disable Metrics/AbcSize
# rubocop: disable CodeReuse/ActiveRecord
def
system_usage_data
alert_bot_incident_count
=
count
(
::
Issue
.
authored
(
::
User
.
alert_bot
),
start:
issue_minimum_id
,
finish:
issue_maximum_id
)
issues_created_manually_from_alerts
=
count
(
Issue
.
with_alert_management_alerts
.
not_authored_by
(
::
User
.
alert_bot
),
start:
issue_minimum_id
,
finish:
issue_maximum_id
)
{
...
...
@@ -122,7 +121,7 @@ module Gitlab
issues_created_gitlab_alerts:
issues_created_manually_from_alerts
,
issues_created_manually_from_alerts:
issues_created_manually_from_alerts
,
incident_issues:
count
(
::
Issue
.
incident
,
start:
issue_minimum_id
,
finish:
issue_maximum_id
),
alert_bot_incident_issues:
alert_bot_incident_count
,
alert_bot_incident_issues:
count
(
::
Issue
.
authored
(
::
User
.
alert_bot
),
start:
issue_minimum_id
,
finish:
issue_maximum_id
)
,
incident_labeled_issues:
count
(
::
Issue
.
with_label_attributes
(
::
IncidentManagement
::
CreateIncidentLabelService
::
LABEL_PROPERTIES
),
start:
issue_minimum_id
,
finish:
issue_maximum_id
),
keys:
count
(
Key
),
label_lists:
count
(
List
.
label
),
...
...
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