Make transaction enrichment opt-in for all users (#1552)

This commit is contained in:
Zach Gollwitzer
2024-12-17 09:58:08 -05:00
committed by GitHub
parent ba878c3d8b
commit 68617514b0
12 changed files with 46 additions and 35 deletions

View File

@@ -11,7 +11,7 @@ class Account::Syncer
update_account_info(balances, holdings) unless account.plaid_account_id.present?
convert_records_to_family_currency(balances, holdings) unless account.currency == account.family.currency
if Setting.data_enrichment_enabled || Rails.configuration.app_mode.managed?
if account.family.data_enrichment_enabled?
account.enrich_data_later
else
Rails.logger.info("Data enrichment is disabled, skipping enrichment for account #{account.id}")

View File

@@ -17,10 +17,6 @@ class Setting < RailsSettings::Base
default: ENV.fetch("UPGRADES_TARGET", "release"),
validates: { inclusion: { in: %w[release commit] } }
field :data_enrichment_enabled,
type: :boolean,
default: false
field :synth_api_key, type: :string, default: ENV["SYNTH_API_KEY"]
field :require_invite_for_signup, type: :boolean, default: false