Skip to content
代码片段 群组 项目
提交 83b67f7d 编辑于 作者: Allen Cook's avatar Allen Cook
浏览文件

Merge branch...

Merge branch '426394-feature-flag-remove-group_vulnerabilities_optimized_query-feature-flag' into 'master' 

[Feature flag] Remove `group_vulnerabilities_optimized_query` FF

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



Merged-by: default avatarAllen Cook <acook@gitlab.com>
Approved-by: default avatarAlex Buijs <abuijs@gitlab.com>
Approved-by: default avatarAllen Cook <acook@gitlab.com>
Co-authored-by: default avatarMichael Becker <11881043-wandering_person@users.noreply.gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -56,7 +56,7 @@ def exporter
end
def vulnerabilities
if exportable.is_a?(Group) && ::Feature.enabled?(:group_vulnerabilities_optimized_query, exportable)
if exportable.is_a?(Group)
scope = ::Vulnerability.unscoped # rubocop:disable CodeReuse/ActiveRecord
opts = {
......
---
name: group_vulnerabilities_optimized_query
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/127180
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/426394
milestone: '16.5'
type: development
group: group::threat insights
default_enabled: false
......@@ -137,17 +137,6 @@
expect(rows.count).to eq(group.vulnerabilities.without_archived_projects.count)
end
context 'when group_vulnerabilities_optimized_query is disabled' do
before do
stub_feature_flags(group_vulnerabilities_optimized_query: false)
end
it 'delegates vulnerability lookup to the finder' do
export
expect(mock_vulnerability_finder_service_object).to have_received(:execute)
end
end
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册