Commit cc40f9bf authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch '34852-remove-pendo-from-gitlab-foss' into 'master'

Resolve "Remove pendo from GitLab-FOSS"

Closes #34852

See merge request gitlab-org/gitlab!19105
parents 1811b0e3 3ecce7b8
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
= render 'third_party_offers', application_setting: @application_setting = render 'third_party_offers', application_setting: @application_setting
= render 'admin/application_settings/snowplow', expanded: expanded_by_default? = render 'admin/application_settings/snowplow', expanded: expanded_by_default?
= render 'admin/application_settings/pendo' = render_if_exists 'admin/application_settings/pendo'
...@@ -90,4 +90,4 @@ ...@@ -90,4 +90,4 @@
= render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id') = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
= render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id') = render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id')
= render 'layouts/snowplow' = render 'layouts/snowplow'
= render 'layouts/pendo' = render_if_exists 'layouts/pendo'
...@@ -92,28 +92,6 @@ describe 'layouts/_head' do ...@@ -92,28 +92,6 @@ describe 'layouts/_head' do
end end
end end
context 'when pendo is enabled' do
it 'adds a pendo initialization snippet with url', :aggregate_failures do
allow(Gitlab::CurrentSettings).to receive(:pendo_enabled?).and_return(true)
allow(Gitlab::CurrentSettings).to receive(:pendo_url).and_return('www.pen.do')
render
expect(rendered).to match('pendo.initialize')
expect(rendered).to match('www.pen.do')
end
end
context 'when pendo is not enabled' do
it 'do not add pendo snippet' do
allow(Gitlab::CurrentSettings).to receive(:pendo_enabled?).and_return(false)
render
expect(rendered).not_to match('pendo.initialize')
end
end
context 'when a Piwik config is set' do context 'when a Piwik config is set' do
let(:piwik_host) { 'piwik.example.com' } let(:piwik_host) { 'piwik.example.com' }
......
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