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
854d3eea
Commit
854d3eea
authored
Feb 08, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use consistent event names
Event names now all follow {verb}-{object} order.
parent
ec9eb302
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
ee/app/controllers/projects/integrations/jira/issues_controller.rb
...ntrollers/projects/integrations/jira/issues_controller.rb
+1
-1
ee/app/models/project_services/ee/jira_service.rb
ee/app/models/project_services/ee/jira_service.rb
+1
-1
ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb
...lers/projects/integrations/jira/issues_controller_spec.rb
+1
-1
ee/spec/models/project_services/jira_service_spec.rb
ee/spec/models/project_services/jira_service_spec.rb
+1
-1
lib/gitlab/usage_data_counters/known_events/ecosystem.yml
lib/gitlab/usage_data_counters/known_events/ecosystem.yml
+2
-2
No files found.
ee/app/controllers/projects/integrations/jira/issues_controller.rb
View file @
854d3eea
...
...
@@ -10,7 +10,7 @@ module Projects
include
RedisTracking
track_redis_hll_event
:index
,
name:
'i_ecosystem_jira_service_
issue_list
'
,
name:
'i_ecosystem_jira_service_
list_issues
'
,
feature: :usage_data_track_ecosystem_jira_service
before_action
:check_feature_enabled!
...
...
ee/app/models/project_services/ee/jira_service.rb
View file @
854d3eea
...
...
@@ -66,7 +66,7 @@ module EE
description:
description
}
)
log_usage
(
:
issue_creat
e
,
current_user
)
log_usage
(
:
create_issu
e
,
current_user
)
issue
end
end
...
...
ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb
View file @
854d3eea
...
...
@@ -41,7 +41,7 @@ RSpec.describe Projects::Integrations::Jira::IssuesController do
it
'tracks usage'
do
expect
(
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
)
.
to
receive
(
:track_event
)
.
with
(
'i_ecosystem_jira_service_
issue_list
'
,
values:
user
.
id
)
.
with
(
'i_ecosystem_jira_service_
list_issues
'
,
values:
user
.
id
)
get
:index
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
}
end
...
...
ee/spec/models/project_services/jira_service_spec.rb
View file @
854d3eea
...
...
@@ -163,7 +163,7 @@ RSpec.describe JiraService do
expect
(
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
)
.
to
receive
(
:track_event
)
.
with
(
'i_ecosystem_jira_service_
issue_creat
e'
,
values:
user
.
id
)
.
with
(
'i_ecosystem_jira_service_
create_issu
e'
,
values:
user
.
id
)
jira_service
.
create_issue
(
'x'
,
'y'
,
user
)
end
...
...
lib/gitlab/usage_data_counters/known_events/ecosystem.yml
View file @
854d3eea
...
...
@@ -10,12 +10,12 @@
redis_slot
:
ecosystem
aggregation
:
weekly
feature_flag
:
usage_data_track_ecosystem_jira_service
-
name
:
i_ecosystem_jira_service_
issue_list
-
name
:
i_ecosystem_jira_service_
list_issues
category
:
ecosystem
redis_slot
:
ecosystem
aggregation
:
weekly
feature_flag
:
usage_data_track_ecosystem_jira_service
-
name
:
i_ecosystem_jira_service_
issue_creat
e
-
name
:
i_ecosystem_jira_service_
create_issu
e
category
:
ecosystem
redis_slot
:
ecosystem
aggregation
:
weekly
...
...
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