Skip to content
代码片段 群组 项目
提交 3dad1b39 编辑于 作者: Eduardo Bonet's avatar Eduardo Bonet
浏览文件

Removes feature flag ipynbdiff_notes_tracker

Feature has been active for many milestones, no need to keep this live.

Changelog: other
上级 e817e0b5
No related branches found
No related tags found
无相关合并请求
...@@ -212,7 +212,7 @@ def track_note_creation_usage_for_merge_requests(note) ...@@ -212,7 +212,7 @@ def track_note_creation_usage_for_merge_requests(note)
end end
def should_track_ipynb_notes?(note) def should_track_ipynb_notes?(note)
Feature.enabled?(:ipynbdiff_notes_tracker) && note.respond_to?(:diff_file) && note.diff_file&.ipynb? note.respond_to?(:diff_file) && note.diff_file&.ipynb?
end end
def track_note_creation_in_ipynb(note) def track_note_creation_in_ipynb(note)
......
---
name: ipynbdiff_notes_tracker
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/85398
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/362232
milestone: '15.0'
type: development
group: group::incubation
default_enabled: false
...@@ -395,27 +395,12 @@ ...@@ -395,27 +395,12 @@
context 'is ipynb file' do context 'is ipynb file' do
before do before do
allow_any_instance_of(::Gitlab::Diff::File).to receive(:ipynb?).and_return(true) allow_any_instance_of(::Gitlab::Diff::File).to receive(:ipynb?).and_return(true)
stub_feature_flags(ipynbdiff_notes_tracker: false)
end end
context ':ipynbdiff_notes_tracker is off' do it 'tracks ipynb diff note creation' do
it 'does not track ipynb note usage data' do expect(::Gitlab::UsageDataCounters::IpynbDiffActivityCounter).to receive(:note_created)
expect(::Gitlab::UsageDataCounters::IpynbDiffActivityCounter).not_to receive(:note_created)
described_class.new(project_with_repo, user, new_opts).execute described_class.new(project_with_repo, user, new_opts).execute
end
end
context ':ipynbdiff_notes_tracker is on' do
before do
stub_feature_flags(ipynbdiff_notes_tracker: true)
end
it 'tracks ipynb diff note creation' do
expect(::Gitlab::UsageDataCounters::IpynbDiffActivityCounter).to receive(:note_created)
described_class.new(project_with_repo, user, new_opts).execute
end
end end
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册