Skip to content
Snippets Groups Projects
Commit 854d3eea authored by Alexis Kalderimis's avatar Alexis Kalderimis :speech_balloon:
Browse files

Use consistent event names

Event names now all follow {verb}-{object} order.
parent ec9eb302
Branches 297401-usage-tracking-for-jira-integration
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,7 @@ class IssuesController < Projects::ApplicationController
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!
Loading
Loading
Loading
Loading
@@ -66,7 +66,7 @@ def create_issue(summary, description, current_user)
description: description
}
)
log_usage(:issue_create, current_user)
log_usage(:create_issue, current_user)
issue
end
end
Loading
Loading
Loading
Loading
@@ -41,7 +41,7 @@
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
Loading
Loading
Loading
Loading
@@ -163,7 +163,7 @@
 
expect(Gitlab::UsageDataCounters::HLLRedisCounter)
.to receive(:track_event)
.with('i_ecosystem_jira_service_issue_create', values: user.id)
.with('i_ecosystem_jira_service_create_issue', values: user.id)
 
jira_service.create_issue('x', 'y', user)
end
Loading
Loading
Loading
Loading
@@ -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_create
- name: i_ecosystem_jira_service_create_issue
category: ecosystem
redis_slot: ecosystem
aggregation: weekly
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment