Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Spree::Zone not found #3186

Closed
wants to merge 1 commit into from

Conversation

tjgfernandes
Copy link

Fix for Spree::Zone not found while running 'bundle exec rake spree_sample:load'

Rails version: 5.1.7
Ruby: 2.5

@kennyadsl
Copy link
Member

Hey @tjgfernandes, thanks for submitting this PR. Did you run bundle exec rake db:seed before spree_sample:load? I think it is required since sample data give for granted that seeds data are there.

@tjgfernandes
Copy link
Author

Hi @kennyadsl

yes i did run db:seed, also drop and created db two times followed by db:migrate, db:seed, etc but this only worked as excpected after this fix.

@kennyadsl
Copy link
Member

I can't reproduce this error on a fresh sandbox in master. These are the steps with the relevant output, if you need to compare:

> bundle exec rake sandbox
> cd sandbox
> bundle exec rake db:drop
> bundle exec rake db:create
> bundle exec rake db:migrate

> bundle exec rake db:seed
Loading seed file: stores
Loading seed file: store_credit
Loading seed file: countries
Loading seed file: return_reasons
Loading seed file: states
Loading seed file: stock_locations
Loading seed file: zones
Loading seed file: refund_reasons
Loading seed file: roles
Loading seed file: shipping_categories
Create the admin user (press enter for defaults).
Email [[email protected]]:
Password [test123]:
Done!

> bundle exec rake spree_sample:load
Loaded Payment Methods samples
Loaded Tax Categories samples
Loaded Tax Rates samples
Loaded Shipping Categories samples
Loaded Shipping Methods samples
Loaded Products samples
Loaded Taxonomies samples
Loaded Taxons samples
Loaded Option Types samples
Loaded Option Values samples
Loaded Product Option Types samples
Loaded Product Properties samples
Loaded Variants samples
Loaded Stock samples
Loading images for Ruby on Rails Tote
Loading images for Ruby on Rails Bag
Loading images for Ruby on Rails Baseball Jersey
Loading images for Ruby on Rails Jr. Spaghetti
Loading images for Ruby on Rails Mug
Loading images for Ruby on Rails Ringer T-Shirt
Loading images for Ruby on Rails Stein
Loading images for Apache Baseball Jersey
Loading images for Ruby Baseball Jersey
Loaded Assets samples
Loaded Addresses samples
Loaded Stores samples
Loaded Orders samples
Loaded Payments samples
Loaded Reimbursements samples

@jacobherrington
Copy link
Contributor

I have not reproduced this error either, but that doesn't mean it doesn't exist. Can you provide specific input and the output recreating this error @tjgfernandes?

@kennyadsl
Copy link
Member

Thanks for reporting but I'm closing this one for missing context, feel free to reopen if needed!

@kennyadsl kennyadsl closed this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants