Skip to content
代码片段 群组 项目
未验证 提交 8787af00 编辑于 作者: Jonas Larsen's avatar Jonas Larsen 提交者: GitLab
浏览文件

Merge branch 'jtucker/todo-users-service-ping' into 'master'

Add new event tracking To-Do List user volume for SM installations

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/182178



Merged-by: default avatarJonas Larsen <jlarsen@gitlab.com>
Approved-by: default avatarJonas Larsen <jlarsen@gitlab.com>
Co-authored-by: default avatarJeff Tucker <jtucker@gitlab.com>
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class Dashboard::TodosController < Dashboard::ApplicationController
include Gitlab::InternalEventsTracking
feature_category :notifications
urgency :low
def index
track_internal_event(
'view_todo_list',
user: current_user
)
push_frontend_feature_flag(:todos_bulk_actions, current_user)
end
......
---
description: User views the To-Do List
internal_events: true
action: view_todo_list
identifiers:
- user
product_group: personal_productivity
product_categories:
- notifications
milestone: '17.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/182178
tiers:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.count_distinct_user_id_from_view_todo_list
description: Count of unique users that viewed the To-Do List
product_group: personal_productivity
product_categories:
- notifications
performance_indicator_type: []
value_type: number
status: active
milestone: '17.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/182178
time_frame:
- 28d
- 7d
data_source: internal_events
data_category: optional
tiers:
- free
- premium
- ultimate
events:
- name: view_todo_list
unique: user.id
......@@ -21,5 +21,13 @@
it_behaves_like 'disabled when using an external authorization service'
end
it_behaves_like 'internal event tracking' do
subject { get :index }
let(:event) { 'view_todo_list' }
let(:category) { described_class.name }
let(:user) { create(:user) }
end
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册