Commit 5f181b2d authored by Tiger's avatar Tiger Committed by Jose Vargas

Disable canary deployment user callout

parent e4167f1a
......@@ -16,10 +16,7 @@ module EE
THREAT_MONITORING_INFO = 'threat_monitoring_info'
def show_canary_deployment_callout?(project)
!user_dismissed?(CANARY_DEPLOYMENT) &&
show_promotions? &&
# use :canary_deployments if we create a feature flag for it in the future
!project.feature_available?(:deploy_board)
false
end
def render_enable_hashed_storage_warning
......
......@@ -141,10 +141,6 @@ RSpec.describe EE::UserCalloutsHelper do
end
context 'when user needs to upgrade to canary deployments' do
before do
allow(project).to receive(:feature_available?).with(:deploy_board).and_return(false)
end
context 'when user has dismissed' do
before do
allow(helper).to receive(:user_dismissed?).and_return(true)
......@@ -158,19 +154,10 @@ RSpec.describe EE::UserCalloutsHelper do
allow(helper).to receive(:user_dismissed?).and_return(false)
end
it { is_expected.to be_truthy }
end
end
context 'when user already has access to canary deployments' do
before do
allow(project).to receive(:feature_available?).with(:deploy_board).and_return(true)
allow(helper).to receive(:user_dismissed?).and_return(false)
end
it { is_expected.to be_falsey }
end
end
end
describe '#render_dashboard_gold_trial' do
let_it_be(:namespace) { create(:namespace) }
......
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