Module: Gitlab::UsageDataCounters::WorkItemActivityUniqueCounter

Defined in:
lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb

Constant Summary collapse

WORK_ITEM_CREATED =
'users_creating_work_items'
WORK_ITEM_TITLE_CHANGED =
'users_updating_work_item_title'
WORK_ITEM_DATE_CHANGED =
'users_updating_work_item_dates'
WORK_ITEM_LABELS_CHANGED =
'users_updating_work_item_labels'
WORK_ITEM_MILESTONE_CHANGED =
'users_updating_work_item_milestone'

Class Method Summary collapse

Class Method Details

.track_work_item_created_action(author:) ⇒ Object



13
14
15
# File 'lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb', line 13

def track_work_item_created_action(author:)
  track_unique_action(WORK_ITEM_CREATED, author)
end

.track_work_item_date_changed_action(author:) ⇒ Object



21
22
23
# File 'lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb', line 21

def track_work_item_date_changed_action(author:)
  track_unique_action(WORK_ITEM_DATE_CHANGED, author)
end

.track_work_item_labels_changed_action(author:) ⇒ Object



25
26
27
# File 'lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb', line 25

def track_work_item_labels_changed_action(author:)
  track_unique_action(WORK_ITEM_LABELS_CHANGED, author)
end

.track_work_item_milestone_changed_action(author:) ⇒ Object



29
30
31
# File 'lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb', line 29

def track_work_item_milestone_changed_action(author:)
  track_unique_action(WORK_ITEM_MILESTONE_CHANGED, author)
end

.track_work_item_title_changed_action(author:) ⇒ Object



17
18
19
# File 'lib/gitlab/usage_data_counters/work_item_activity_unique_counter.rb', line 17

def track_work_item_title_changed_action(author:)
  track_unique_action(WORK_ITEM_TITLE_CHANGED, author)
end