Commit 0311859d authored by Vasilii Iakliushin's avatar Vasilii Iakliushin

Add Usage Ping events for Static Site Editor

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/233994

Add `merge_requests` and `commits` events
parent f0e075d2
---
name: usage_data_static_site_editor_commits
introduced_by_url:
rollout_issue_url:
milestone:
type: development
group: group::static_site_editor
default_enabled: false
---
name: usage_data_static_site_editor_merge_requests
introduced_by_url:
rollout_issue_url:
milestone:
type: development
group: group::static_site_editor
default_enabled: false
......@@ -3,7 +3,7 @@
module Gitlab
module UsageDataCounters
class StaticSiteEditorCounter < BaseCounter
KNOWN_EVENTS = %w[views].freeze
KNOWN_EVENTS = %w[views commits merge_requests].freeze
PREFIX = 'static_site_editor'
class << self
......
......@@ -4,7 +4,11 @@ require 'spec_helper'
RSpec.describe Gitlab::UsageDataCounters::StaticSiteEditorCounter do
it_behaves_like 'a redis usage counter', 'StaticSiteEditor', :views
it_behaves_like 'a redis usage counter', 'StaticSiteEditor', :commits
it_behaves_like 'a redis usage counter', 'StaticSiteEditor', :merge_requests
it_behaves_like 'a redis usage counter with totals', :static_site_editor,
views: 3
views: 3,
commits: 4,
merge_requests: 5
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment