Skip to content
代码片段 群组 项目
提交 abd04ae7 编辑于 作者: Bala Kumar's avatar Bala Kumar
浏览文件

Merge branch '391934_cleanup_add_refresh_pull_mirror_worker_ff' into 'master'

Cleanup add_refresh_pull_mirror_worker feature flag

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



Merged-by: default avatarBala Kumar <sbalakumar@gitlab.com>
Approved-by: default avatarBala Kumar <sbalakumar@gitlab.com>
Approved-by: default avatarAakriti Gupta <agupta@gitlab.com>
Co-authored-by: default avatarVasilii Iakliushin <viakliushin@gitlab.com>
No related branches found
No related tags found
无相关合并请求
---
name: add_refresh_pull_mirror_worker
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/103665
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/382226
milestone: '15.7'
type: development
group: group::source code
default_enabled: false
...@@ -14,7 +14,6 @@ def handle_event(event) ...@@ -14,7 +14,6 @@ def handle_event(event)
namespace = Namespace.find_by_id(event.data[:namespace_id]) namespace = Namespace.find_by_id(event.data[:namespace_id])
return if namespace.blank? return if namespace.blank?
return if Feature.disabled?(:add_refresh_pull_mirror_worker, namespace)
cte = Gitlab::SQL::CTE.new(:namespace_ids, namespace.self_and_descendant_ids) cte = Gitlab::SQL::CTE.new(:namespace_ids, namespace.self_and_descendant_ids)
......
...@@ -27,18 +27,6 @@ ...@@ -27,18 +27,6 @@
.and not_change { another_namespace_mirror_state.reload.retry_count } .and not_change { another_namespace_mirror_state.reload.retry_count }
end end
context 'when feature flag add_refresh_pull_mirror_worker is disabled' do
before do
stub_feature_flags(add_refresh_pull_mirror_worker: false)
end
it 'does not re-enable pull mirror configurations' do
expect do
consume_event(subscriber: described_class, event: subscription_started_event)
end.not_to change { mirror_state.reload.retry_count }
end
end
context 'when namespace id is missing' do context 'when namespace id is missing' do
let(:data) { { namespace_id: non_existing_record_id } } let(:data) { { namespace_id: non_existing_record_id } }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册