Commit 35097265 authored by Mark Florian's avatar Mark Florian

Disable dependency_list feature by default

parent ed9f343a
......@@ -5,7 +5,8 @@ module Projects
before_action :check_feature_enabled!
def check_feature_enabled!
render_404 unless project.feature_available?(:dependency_list)
render_404 unless ::Feature.enabled?(:dependency_list, default_enabled: false) &&
project.feature_available?(:dependency_list)
end
end
end
......@@ -28,7 +28,8 @@ module Projects
end
def ensure_dependency_list_feature_available
render_404 unless project.feature_available?(:dependency_list)
render_404 unless ::Feature.enabled?(:dependency_list, default_enabled: false) &&
project.feature_available?(:dependency_list)
end
def dependencies
......
......@@ -81,7 +81,8 @@ module EE
end
def collect_dependency_list_reports!(dependency_list_report)
if project.feature_available?(:dependency_list)
flag_enabled = ::Feature.enabled?(:dependency_list, default_enabled: false)
if flag_enabled && project.feature_available?(:dependency_list)
dependency_list = ::Gitlab::Ci::Parsers::Security::DependencyList.new(project, sha)
each_report(::Ci::JobArtifact::DEPENDENCY_LIST_REPORT_FILE_TYPES) do |file_type, blob|
......
- if @project.feature_available?(:dependency_list)
- if ::Feature.enabled?(:dependency_list, default_enabled: false) && @project.feature_available?(:dependency_list)
= nav_link(path: 'projects/dependencies#show') do
= link_to project_dependencies_path(@project), title: _('Dependency List'), class: 'shortcuts-project-dependencies' do
%span= _('Dependency List')
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