Module: Gitlab::UsageDataCounters::IssueActivityUniqueCounter

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

Constant Summary collapse

ISSUE_CATEGORY =
'issues_edit'
ISSUE_ASSIGNEE_CHANGED =
'g_project_management_issue_assignee_changed'
ISSUE_CREATED =
'g_project_management_issue_created'
ISSUE_CLOSED =
'g_project_management_issue_closed'
ISSUE_DESCRIPTION_CHANGED =
'g_project_management_issue_description_changed'
ISSUE_LABEL_CHANGED =
'g_project_management_issue_label_changed'
ISSUE_MADE_CONFIDENTIAL =
'g_project_management_issue_made_confidential'
ISSUE_MADE_VISIBLE =
'g_project_management_issue_made_visible'
ISSUE_MILESTONE_CHANGED =
'g_project_management_issue_milestone_changed'
ISSUE_REOPENED =
'g_project_management_issue_reopened'
ISSUE_TITLE_CHANGED =
'g_project_management_issue_title_changed'
ISSUE_CROSS_REFERENCED =
'g_project_management_issue_cross_referenced'
ISSUE_MOVED =
'g_project_management_issue_moved'
'g_project_management_issue_related'
ISSUE_CLONED =
'g_project_management_issue_cloned'
ISSUE_UNRELATED =
'g_project_management_issue_unrelated'
ISSUE_MARKED_AS_DUPLICATE =
'g_project_management_issue_marked_as_duplicate'
ISSUE_LOCKED =
'g_project_management_issue_locked'
ISSUE_UNLOCKED =
'g_project_management_issue_unlocked'
ISSUE_DESIGNS_ADDED =
'g_project_management_issue_designs_added'
ISSUE_DESIGNS_MODIFIED =
'g_project_management_issue_designs_modified'
ISSUE_DESIGNS_REMOVED =
'g_project_management_issue_designs_removed'
ISSUE_DUE_DATE_CHANGED =
'g_project_management_issue_due_date_changed'
ISSUE_TIME_ESTIMATE_CHANGED =
'g_project_management_issue_time_estimate_changed'
ISSUE_TIME_SPENT_CHANGED =
'g_project_management_issue_time_spent_changed'
ISSUE_COMMENT_ADDED =
'g_project_management_issue_comment_added'
ISSUE_COMMENT_EDITED =
'g_project_management_issue_comment_edited'
ISSUE_COMMENT_REMOVED =
'g_project_management_issue_comment_removed'

Class Method Summary collapse

Class Method Details

.track_issue_assignee_changed_action(author:) ⇒ Object


49
50
51
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 49

def track_issue_assignee_changed_action(author:)
  track_unique_action(ISSUE_ASSIGNEE_CHANGED, author)
end

.track_issue_cloned_action(author:) ⇒ Object


141
142
143
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 141

def track_issue_cloned_action(author:)
  track_unique_action(ISSUE_CLONED, author)
end

.track_issue_closed_action(author:) ⇒ Object


61
62
63
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 61

def track_issue_closed_action(author:)
  track_unique_action(ISSUE_CLOSED, author)
end

.track_issue_comment_added_action(author:) ⇒ Object


129
130
131
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 129

def track_issue_comment_added_action(author:)
  track_unique_action(ISSUE_COMMENT_ADDED, author)
end

.track_issue_comment_edited_action(author:) ⇒ Object


133
134
135
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 133

def track_issue_comment_edited_action(author:)
  track_unique_action(ISSUE_COMMENT_EDITED, author)
end

.track_issue_comment_removed_action(author:) ⇒ Object


137
138
139
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 137

def track_issue_comment_removed_action(author:)
  track_unique_action(ISSUE_COMMENT_REMOVED, author)
end

.track_issue_created_action(author:) ⇒ Object


37
38
39
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 37

def track_issue_created_action(author:)
  track_unique_action(ISSUE_CREATED, author)
end

.track_issue_cross_referenced_action(author:) ⇒ Object


77
78
79
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 77

def track_issue_cross_referenced_action(author:)
  track_unique_action(ISSUE_CROSS_REFERENCED, author)
end

.track_issue_description_changed_action(author:) ⇒ Object


45
46
47
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 45

def track_issue_description_changed_action(author:)
  track_unique_action(ISSUE_DESCRIPTION_CHANGED, author)
end

.track_issue_designs_added_action(author:) ⇒ Object


105
106
107
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 105

def track_issue_designs_added_action(author:)
  track_unique_action(ISSUE_DESIGNS_ADDED, author)
end

.track_issue_designs_modified_action(author:) ⇒ Object


109
110
111
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 109

def track_issue_designs_modified_action(author:)
  track_unique_action(ISSUE_DESIGNS_MODIFIED, author)
end

.track_issue_designs_removed_action(author:) ⇒ Object


113
114
115
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 113

def track_issue_designs_removed_action(author:)
  track_unique_action(ISSUE_DESIGNS_REMOVED, author)
end

.track_issue_due_date_changed_action(author:) ⇒ Object


117
118
119
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 117

def track_issue_due_date_changed_action(author:)
  track_unique_action(ISSUE_DUE_DATE_CHANGED, author)
end

.track_issue_label_changed_action(author:) ⇒ Object


69
70
71
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 69

def track_issue_label_changed_action(author:)
  track_unique_action(ISSUE_LABEL_CHANGED, author)
end

.track_issue_locked_action(author:) ⇒ Object


97
98
99
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 97

def track_issue_locked_action(author:)
  track_unique_action(ISSUE_LOCKED, author)
end

.track_issue_made_confidential_action(author:) ⇒ Object


53
54
55
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 53

def track_issue_made_confidential_action(author:)
  track_unique_action(ISSUE_MADE_CONFIDENTIAL, author)
end

.track_issue_made_visible_action(author:) ⇒ Object


57
58
59
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 57

def track_issue_made_visible_action(author:)
  track_unique_action(ISSUE_MADE_VISIBLE, author)
end

.track_issue_marked_as_duplicate_action(author:) ⇒ Object


93
94
95
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 93

def track_issue_marked_as_duplicate_action(author:)
  track_unique_action(ISSUE_MARKED_AS_DUPLICATE, author)
end

.track_issue_milestone_changed_action(author:) ⇒ Object


73
74
75
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 73

def track_issue_milestone_changed_action(author:)
  track_unique_action(ISSUE_MILESTONE_CHANGED, author)
end

.track_issue_moved_action(author:) ⇒ Object


81
82
83
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 81

def track_issue_moved_action(author:)
  track_unique_action(ISSUE_MOVED, author)
end

85
86
87
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 85

def track_issue_related_action(author:)
  track_unique_action(ISSUE_RELATED, author)
end

.track_issue_reopened_action(author:) ⇒ Object


65
66
67
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 65

def track_issue_reopened_action(author:)
  track_unique_action(ISSUE_REOPENED, author)
end

.track_issue_time_estimate_changed_action(author:) ⇒ Object


121
122
123
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 121

def track_issue_time_estimate_changed_action(author:)
  track_unique_action(ISSUE_TIME_ESTIMATE_CHANGED, author)
end

.track_issue_time_spent_changed_action(author:) ⇒ Object


125
126
127
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 125

def track_issue_time_spent_changed_action(author:)
  track_unique_action(ISSUE_TIME_SPENT_CHANGED, author)
end

.track_issue_title_changed_action(author:) ⇒ Object


41
42
43
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 41

def track_issue_title_changed_action(author:)
  track_unique_action(ISSUE_TITLE_CHANGED, author)
end

.track_issue_unlocked_action(author:) ⇒ Object


101
102
103
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 101

def track_issue_unlocked_action(author:)
  track_unique_action(ISSUE_UNLOCKED, author)
end

.track_issue_unrelated_action(author:) ⇒ Object


89
90
91
# File 'lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb', line 89

def track_issue_unrelated_action(author:)
  track_unique_action(ISSUE_UNRELATED, author)
end