Commit 9bf63a5b authored by Igor Frenkel's avatar Igor Frenkel Committed by Doug Stull

Update attribute indirection

Use attribute which is behind a feature flag when getting a managed
license approval_status. This was missed in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/79266.

Changelog: fixed
EE: true
parent 74b0b68e
......@@ -4,8 +4,7 @@ module EE
module API
module Entities
class ManagedLicense < Grape::Entity
expose :id, :name
expose :legacy_approval_status, as: :approval_status
expose :id, :name, :approval_status
end
end
end
......
......@@ -12,6 +12,7 @@ RSpec.describe 'EE > Projects > Licenses > Maintainer views policies', :js do
before do
stub_licensed_features(license_scanning: true)
stub_feature_flags(lc_remove_legacy_approval_status: false)
sign_in(maintainer)
visit(project_licenses_path(project))
......
......@@ -11,6 +11,7 @@ RSpec.describe API::ManagedLicenses do
before do
stub_licensed_features(license_scanning: true)
stub_feature_flags(lc_remove_legacy_approval_status: false)
project.add_maintainer(maintainer_user)
project.add_developer(dev_user)
project.add_reporter(reporter_user)
......
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