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

Merge branch...

Merge branch '441981-add-assignment-for-showcase-project-templates-during-registration' into 'master' 

Add assignment for experiment: project_templates_during_registration

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



Merged-by: default avatarStan Hu <stanhu@gmail.com>
Approved-by: default avatarAditya Tiwari <atiwari@gitlab.com>
Approved-by: default avatarStan Hu <stanhu@gmail.com>
Co-authored-by: default avatarrliu-gl <rliu@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -88,6 +88,9 @@ def track_event(action)
end
def track_project_registration_submission(project)
experiment(:project_templates_during_registration, user: current_user).track(:assignment,
namespace: project.namespace)
experiment_project_templates_during_registration(
project,
:successfully_submitted_form,
......
......@@ -187,6 +187,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
expect(experiment).not_to receive(:track).with(
......@@ -202,6 +203,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
expect(experiment).to receive(:track).with(
......@@ -220,6 +222,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'trial_registration')
post_create
......@@ -259,6 +262,7 @@
it 'does not track submission event' do
expect(experiment).to receive(:publish)
expect(experiment).not_to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).not_to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
post_create
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册