Commit 5fb3adaf authored by Axel García's avatar Axel García

Rename ecomm_instrumentation feature flag

To follow-up the epic renaming, at:
https://gitlab.com/groups/gitlab-org/-/epics/6347
parent f615ee9b
...@@ -170,7 +170,7 @@ module AuthHelper ...@@ -170,7 +170,7 @@ module AuthHelper
end end
def one_trust_enabled? def one_trust_enabled?
Feature.enabled?(:ecomm_instrumentation_google_analytics_cookies, nil, type: :ops) && Feature.enabled?(:ecomm_instrumentation, nil, type: :ops) &&
extra_config.has_key?('one_trust_id') && extra_config.has_key?('one_trust_id') &&
extra_config.one_trust_id.present? && extra_config.one_trust_id.present? &&
!current_user !current_user
......
--- ---
name: ecomm_instrumentation_google_analytics_cookies name: ecomm_instrumentation
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71243 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71243
rollout_issue_url: rollout_issue_url:
milestone: '14.4' milestone: '14.4'
......
...@@ -324,9 +324,9 @@ RSpec.describe AuthHelper do ...@@ -324,9 +324,9 @@ RSpec.describe AuthHelper do
subject(:one_trust_enabled?) { helper.one_trust_enabled? } subject(:one_trust_enabled?) { helper.one_trust_enabled? }
context 'with ecomm_instrumentation_google_analytics_cookies feature flag enabled' do context 'with ecomm_instrumentation feature flag enabled' do
before do before do
stub_feature_flags(ecomm_instrumentation_google_analytics_cookies: true) stub_feature_flags(ecomm_instrumentation: true)
end end
context 'when current user is set' do context 'when current user is set' 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