Skip to content

add the ability to configure carmen imported countries#4424

Closed
BenMorganIO wants to merge 1 commit intosolidusio:mainfrom
BenMorganIO:configure-carmen-seeds
Closed

add the ability to configure carmen imported countries#4424
BenMorganIO wants to merge 1 commit intosolidusio:mainfrom
BenMorganIO:configure-carmen-seeds

Conversation

@BenMorganIO
Copy link
Contributor

@BenMorganIO BenMorganIO commented Jun 14, 2022

Adds the ability to filter which countries Carmen imports.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

@BenMorganIO BenMorganIO force-pushed the configure-carmen-seeds branch from 9a11722 to ba539e7 Compare June 14, 2022 20:51
# find entries already in the database (so that we may ignore them)
existing_country_isos =
Spree::Country.where(iso: carmen_countries.map(&:alpha_2_code)).pluck(:iso)
Spree::Country.where(iso: selected_countries.map(&:alpha_2_code)).pluck(:iso)
Copy link
Contributor Author

@BenMorganIO BenMorganIO Jun 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually redundant because you can just ON CONFLICT DO NOTHING lol but probably useful for logging.

@waiting-for-dev
Copy link
Contributor

Thanks, @BenMorganIO! Do you think it'd make sense to use the already available .checkout_zone preference. Having another .available_countries setting is redundant.

@kennyadsl kennyadsl added the type:enhancement Proposed or newly added feature label Aug 22, 2022
@waiting-for-dev waiting-for-dev added the changelog:solidus_core Changes to the solidus_core gem label Aug 30, 2022
@fthobe
Copy link
Contributor

fthobe commented Feb 7, 2025

@jarednorman please close

@jarednorman jarednorman closed this Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_core Changes to the solidus_core gem type:enhancement Proposed or newly added feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants