Commit a1780610 authored by Stan Hu's avatar Stan Hu

Merge branch '233994_add_usage_ping_events_for_sse' into 'master'

Add Usage Ping events for Static Site Editor

See merge request gitlab-org/gitlab!47624
parents b1791847 0311859d
---
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