Commit cc73568d authored by Tetiana Chupryna's avatar Tetiana Chupryna

Remove dependency_list license feature

Replace dependency_list with dependency_scanning.
Both features are part of Gold plan and list is based on scanning.
The eventual goal of this change simplify our permission policies.
parent 5290f535
......@@ -105,7 +105,6 @@ class License < ApplicationRecord
cluster_health
container_scanning
dast
dependency_list
dependency_scanning
epics
group_ip_restriction
......
......@@ -76,8 +76,8 @@ module EE
end
with_scope :subject
condition(:dependency_list_enabled) do
@subject.feature_available?(:dependency_list)
condition(:dependency_scanning_enabled) do
@subject.feature_available?(:dependency_scanning)
end
with_scope :subject
......@@ -170,7 +170,7 @@ module EE
rule { license_management_enabled & can?(:read_project) }.enable :read_software_license_policy
rule { dependency_list_enabled & can?(:download_code) }.enable :read_dependencies
rule { dependency_scanning_enabled & can?(:download_code) }.enable :read_dependencies
rule { licenses_list_enabled & can?(:read_software_license_policy) }.enable :read_licenses_list
......
......@@ -730,9 +730,9 @@ describe ProjectPolicy do
end
describe 'read_dependencies' do
context 'when dependency list feature available' do
context 'when dependency scanning feature available' do
before do
stub_licensed_features(dependency_list: true)
stub_licensed_features(dependency_scanning: true)
end
context 'with public project' do
......
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