Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-24 18:07:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-24 18:07:34 +0300
commitdf9890e9a702e2f12bbc8f022b916ca72820a292 (patch)
tree26ff255cfb6843fe963fcafea9ee70121ee5e913 /lib/gitlab/usage_data_counters
parent17c1c66eefd05243dd8ed2c8fd49d17ab1a52522 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/usage_data_counters')
-rw-r--r--lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb6
-rw-r--r--lib/gitlab/usage_data_counters/known_events/common.yml4
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb b/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
index 477fa288874..a59ea36961d 100644
--- a/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
+++ b/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
@@ -34,6 +34,7 @@ module Gitlab
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'
+ ISSUE_DESIGN_COMMENT_REMOVED = 'g_project_management_issue_design_comments_removed'
class << self
def track_issue_created_action(author:, project:)
@@ -171,6 +172,11 @@ module Gitlab
track_unique_action(ISSUE_CLONED, author)
end
+ def track_issue_design_comment_removed_action(author:, project:)
+ track_snowplow_action(ISSUE_DESIGN_COMMENT_REMOVED, author, project)
+ track_unique_action(ISSUE_DESIGN_COMMENT_REMOVED, author)
+ end
+
private
def track_snowplow_action(event_name, author, project)
diff --git a/lib/gitlab/usage_data_counters/known_events/common.yml b/lib/gitlab/usage_data_counters/known_events/common.yml
index a64b7c4032b..5cd94722512 100644
--- a/lib/gitlab/usage_data_counters/known_events/common.yml
+++ b/lib/gitlab/usage_data_counters/known_events/common.yml
@@ -216,6 +216,10 @@
category: issues_edit
redis_slot: project_management
aggregation: daily
+- name: g_project_management_issue_design_comments_removed
+ category: issues_edit
+ redis_slot: project_management
+ aggregation: daily
- name: g_project_management_issue_time_estimate_changed
category: issues_edit
redis_slot: project_management