Commit 55b4480a authored by Max Woolf's avatar Max Woolf

Merge branch 'vij-remove-subscribable-banner-flag' into 'master'

Remove subscribable_subscription_banner flag

See merge request gitlab-org/gitlab!68257
parents 2d99203c 35f3121f
...@@ -73,9 +73,7 @@ module EE ...@@ -73,9 +73,7 @@ module EE
end end
def display_subscription_banner? def display_subscription_banner?
@display_subscription_banner && @display_subscription_banner && ::Gitlab::CurrentSettings.should_check_namespace_plan?
::Gitlab::CurrentSettings.should_check_namespace_plan? &&
::Feature.enabled?(:subscribable_subscription_banner, default_enabled: false)
end end
end end
end end
---
name: subscribable_subscription_banner
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31497
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/230858
milestone: '13.1'
type: development
group: group::utilization
default_enabled: false
...@@ -107,11 +107,6 @@ RSpec.describe EE::SubscribableBannerHelper do ...@@ -107,11 +107,6 @@ RSpec.describe EE::SubscribableBannerHelper do
let(:message) { double(:message) } let(:message) { double(:message) }
context 'when subscribable_subscription_banner feature flag is enabled' do
before do
stub_feature_flags(subscribable_subscription_banner: true)
end
context 'when instance variable true' do context 'when instance variable true' do
before do before do
assign(:display_subscription_banner, true) assign(:display_subscription_banner, true)
...@@ -212,20 +207,6 @@ RSpec.describe EE::SubscribableBannerHelper do ...@@ -212,20 +207,6 @@ RSpec.describe EE::SubscribableBannerHelper do
end end
end end
context 'when subscribable_subscription_banner feature flag is disabled' do
before do
stub_feature_flags(subscribable_subscription_banner: false)
assign(:display_subscription_banner, true)
allow(::Gitlab::CurrentSettings).to receive(:should_check_namespace_plan?).and_return(true)
end
it 'returns the license message' do
expect(helper).to receive(:license_message).and_return(message)
expect(subject).to eq(message)
end
end
end
describe '#display_subscription_banner!' do describe '#display_subscription_banner!' do
it 'sets @display_subscription_banner to true' do it 'sets @display_subscription_banner to true' do
expect(helper.instance_variable_get(:@display_subscription_banner)).to be nil expect(helper.instance_variable_get(:@display_subscription_banner)).to be nil
......
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