diff options
Diffstat (limited to 'lib/product_analytics/settings.rb')
-rw-r--r-- | lib/product_analytics/settings.rb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/product_analytics/settings.rb b/lib/product_analytics/settings.rb index 1c5f25c36b9..ad03c34cdd2 100644 --- a/lib/product_analytics/settings.rb +++ b/lib/product_analytics/settings.rb @@ -4,13 +4,10 @@ module ProductAnalytics class Settings BASE_CONFIG_KEYS = %w[product_analytics_data_collector_host cube_api_base_url cube_api_key].freeze - JITSU_CONFIG_KEYS = (%w[jitsu_host jitsu_project_xid jitsu_administrator_email jitsu_administrator_password] + - %w[product_analytics_clickhouse_connection_string] + BASE_CONFIG_KEYS).freeze - SNOWPLOW_CONFIG_KEYS = (%w[product_analytics_configurator_connection_string] + BASE_CONFIG_KEYS).freeze - ALL_CONFIG_KEYS = (ProductAnalytics::Settings::BASE_CONFIG_KEYS + ProductAnalytics::Settings::JITSU_CONFIG_KEYS + + ALL_CONFIG_KEYS = (ProductAnalytics::Settings::BASE_CONFIG_KEYS + ProductAnalytics::Settings::SNOWPLOW_CONFIG_KEYS).freeze def initialize(project:) @@ -22,15 +19,7 @@ module ProductAnalytics end def configured? - return configured_snowplow? if Feature.enabled?(:product_analytics_snowplow_support, @project) - - JITSU_CONFIG_KEYS.all? do |key| - get_setting_value(key).present? - end - end - - def configured_snowplow? - SNOWPLOW_CONFIG_KEYS.all? do |key| + ALL_CONFIG_KEYS.all? do |key| get_setting_value(key).present? end end |