shopspree-sales-app's People
Forkers
neildvr mezbahalam rabbitcart prasanth1308 marouanbl pouyadarabi mosabalrasheed dondeng kimarudgshopspree-sales-app's Issues
Remove type column in banners.
I get chewy error issue on "bundle exec rake spree_sample:load"
Kindly checkout this link
asdf08:~/workspace (master) $ bundle exec rake spree_sample:load
Loaded Payment Methods samples
Loaded Shipping Categories samples
Loaded Shipping Methods samples
Loaded Tax Categories samples
Loaded Tax Rates samples
rake aborted!
Chewy::UndefinedUpdateStrategy: Index update strategy is undefined in current context.
Please wrap your code with Chewy.strategy(:strategy_name) block.
/usr/local/rvm/gems/ruby-2.3.0/gems/chewy-0.8.3/lib/chewy/strategy/base.rb:17:in update' /usr/local/rvm/gems/ruby-2.3.0/gems/chewy-0.8.3/lib/chewy/type/observe.rb:70:in
update_index'
/usr/local/rvm/gems/ruby-2.3.0/gems/chewy-0.8.3/lib/chewy/type/observe.rb:28:in block in update_proc' /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:446:in
instance_exec'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:446:in block in make_lambda' /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:263:in
block in simple'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:506:in block in call' /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:506:in
each'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:506:in call' /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in
run_callbacks'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in _run_commit_callbacks' /usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:314:in
committed!'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:89:in commit_records' /usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:153:in
commit'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:175:in commit_transaction' /usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in
within_new_transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction' /usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in
transaction'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:348:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:291:in
save!'
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb:51:in create!' /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/db/samples/products.rb:129:in
block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/db/samples/products.rb:124:in each' /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/db/samples/products.rb:124:in
<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' /usr/local/rvm/gems/ruby-2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in block in require' /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in
load_dependency'
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/lib/spree/sample.rb:13:in
load_sample'
/usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/lib/spree_sample.rb:16:in load_samples' /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-a275c9db4f0c/sample/lib/tasks/sample.rake:20:in
block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in load' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in
kernel_load'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in run' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in
exec'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in dispatch' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in
dispatch'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in start' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in
start'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/exe/bundle:34:in block in <top (required)>' /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in
with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/exe/bundle:26:in <top (required)>' /usr/local/rvm/gems/ruby-2.3.0/bin/bundle:23:in
load'
/usr/local/rvm/gems/ruby-2.3.0/bin/bundle:23:in <main>' /usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in
eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `
Tasks: TOP => spree_sample:load
(See full trace by running task with --trace)
Getting error with `rake db:create`
It should be replicable on existing codebase with no changes and just bundle install
and bundle exec rake db:create
. Check the trace at end of the description
Here are the steps which led to the issue just in case above is working without any issues ๐
I have updated Gemfile to be compatible with latest Rails v4.2.7.1 and latest spree with branch 3-0-stable
P.S. All the gems with path: option
are pointing to same branch as defined in Gemfile
Here is my Gemfile and Git Diff of changes
source 'https://rubygems.org'
gem 'rails', '4.2.7.1'
gem 'mysql2', '~> 0.3.18'
gem 'jquery-rails', '~> 4.0'
gem 'jquery-ui-rails', '~> 5.0.3'
gem 'paperclip', '~> 4.2'
gem 'chewy', '~> 0.8.3'
#gem 'spree', github: 'spree/spree', branch: '3-0-stable'
#gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
#gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree', path: '~/spree/spree'
gem 'spree_gateway', path: '~/spree/spree_gateway'
gem 'spree_auth_devise', path: '~/spree/spree_auth_devise'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: '3-0-stable'
gem 'spree_ams', path: '~/spree/spree_ams'
#gem 'spree_ams', github: 'hhff/spree_ams', branch: '3-0-alpha'
gem 'spree_reviews', github: 'spree-contrib/spree_reviews', branch: '3-0-stable'
#gem 'spree_address_book', github: 'spree-contrib/spree_address_book', branch: '3-0-stable'
gem 'spree_address_book', path: '~/spree/spree_address_book'
gem 'aws-sdk', '< 2.0'
gem 'spree_wishlist', github: 'spree-contrib/spree_wishlist', branch: '3-0-stable'
#gem 'spree_email_to_friend', github: 'spree-contrib/spree_email_to_friend', branch: '3-0-stable'
gem 'spree_email_to_friend', path: '~/spree/spree_email_to_friend'
group :assets do
gem 'therubyracer', '~> 0.12.1', platforms: :ruby
gem 'uglifier', '~> 2.7'
gem 'sass-rails', '~> 5.0'
gem 'coffee-rails', '~> 4.1.0'
end
group :production do
gem 'rails_12factor', '~> 0.0.3'
gem 'pg', '~> 0.18.3'
end
group :development, :test do
gem 'byebug', '~> 5.0.0'
gem 'web-console', '~> 2.0'
gem 'quiet_assets', '~> 1.1.0'
end
group :development do
gem 'capistrano', '~> 3.2.1'
gem 'capistrano-bundler', '~> 1.1.4'
gem 'capistrano-rails', '~> 1.1.3'
gem 'binding_of_caller', '~> 0.7.2'
gem 'better_errors', '~> 2.0.0'
gem 'bullet', '~> 4.14.7'
end
group :test do
gem 'rspec-rails', '~> 3.1.0'
gem 'rspec-activemodel-mocks', '~> 1.0.1'
gem 'factory_girl_rails', '~> 4.4.1'
gem 'shoulda-matchers', '~> 2.8.0', require: false
gem 'shoulda-callback-matchers', '~> 1.1.3'
gem 'simplecov', '~> 0.9.2', require: false
end
diff --git a/Gemfile b/Gemfile
index 1514346..c6627f2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,21 +1,27 @@
source 'https://rubygems.org'
-gem 'rails', '4.2.4'
+gem 'rails', '4.2.7.1'
gem 'mysql2', '~> 0.3.18'
-gem 'jquery-rails', '~> 4.0.3'
+gem 'jquery-rails', '~> 4.0'
gem 'jquery-ui-rails', '~> 5.0.3'
-gem 'paperclip', '~> 4.2.4'
+gem 'paperclip', '~> 4.2'
gem 'chewy', '~> 0.8.3'
-gem 'spree', github: 'spree/spree', branch: '3-0-stable'
-gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
-gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
+#gem 'spree', github: 'spree/spree', branch: '3-0-stable'
+#gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
+#gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
+gem 'spree', path: '~/spree/spree'
+gem 'spree_gateway', path: '~/spree/spree_gateway'
+gem 'spree_auth_devise', path: '~/spree/spree_auth_devise'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: '3-0-stable'
-gem 'spree_ams', github: 'hhff/spree_ams', branch: '3-0-alpha'
+gem 'spree_ams', path: '~/spree/spree_ams'
+#gem 'spree_ams', github: 'hhff/spree_ams', branch: '3-0-alpha'
gem 'spree_reviews', github: 'spree-contrib/spree_reviews', branch: '3-0-stable'
-gem 'spree_address_book', github: 'spree-contrib/spree_address_book', branch: '3-0-stable'
+#gem 'spree_address_book', github: 'spree-contrib/spree_address_book', branch: '3-0-stable'
+gem 'spree_address_book', path: '~/spree/spree_address_book'
gem 'aws-sdk', '< 2.0'
gem 'spree_wishlist', github: 'spree-contrib/spree_wishlist', branch: '3-0-stable'
-gem 'spree_email_to_friend', github: 'spree-contrib/spree_email_to_friend', branch: '3-0-stable'
+#gem 'spree_email_to_friend', github: 'spree-contrib/spree_email_to_friend', branch: '3-0-stable'
+gem 'spree_email_to_friend', path: '~/spree/spree_email_to_friend'
Here are some of the git repos downloaded locally and changes in them
spree_address_book
pikender@Pikenders-MacBook-Pro:~/spree/spree_address_book$ git diff
diff --git a/spree_address_book.gemspec b/spree_address_book.gemspec
index ed30e6e..69e39d2 100644
--- a/spree_address_book.gemspec
+++ b/spree_address_book.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'
- s.add_dependency 'spree_core', '~> 3.0.0.rc'
+ s.add_dependency 'spree_core', '~> 3.0.0'
s.add_dependency 'spree_auth_devise'
s.add_development_dependency 'rspec-rails', '~> 3.4.1'
spree_email_to_friend
pikender@Pikenders-MacBook-Pro:~/spree/spree_email_to_friend$ git diff
diff --git a/spree_email_to_friend.gemspec b/spree_email_to_friend.gemspec
index dcf6b70..eae1b77 100755
--- a/spree_email_to_friend.gemspec
+++ b/spree_email_to_friend.gemspec
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.has_rdoc = false
- s.add_dependency 'spree_core', '~> 3.0.0.rc2'
+ s.add_dependency 'spree_core', '~> 3.0.0'
s.add_dependency 'recaptcha', '>= 0.3.1'
s.add_development_dependency 'rspec-rails', '~> 3.2.0'
Run bundle update
Run bundle exec rake db:create
- Ensure config/database.yml is set properly
- Getting exception
pikender@Pikenders-MacBook-Pro:~/rails5/shopspree-sales-app$ bundle exec rake db:create
rake aborted!
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x007ff8e5102ad0>
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:104:in `define'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:80:in `initialize'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rspec_api_documentation-4.9.0/lib/tasks/docs.rake:4:in `new'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rspec_api_documentation-4.9.0/lib/tasks/docs.rake:4:in `<top (required)>'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rspec_api_documentation-4.9.0/lib/rspec_api_documentation/railtie.rb:4:in `block in <class:Railtie>'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/railtie.rb:237:in `instance_exec'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/railtie.rb:237:in `block in run_tasks_blocks'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/railtie.rb:245:in `each'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/railtie.rb:245:in `each_registered_block'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/railtie.rb:237:in `run_tasks_blocks'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/application.rb:451:in `block in run_tasks_blocks'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/engine/railties.rb:13:in `each'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/engine/railties.rb:13:in `each'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/application.rb:451:in `run_tasks_blocks'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/railties-4.2.7.1/lib/rails/engine.rb:453:in `load_tasks'
/Users/pikender/rails5/shopspree-sales-app/Rakefile:6:in `<top (required)>'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/bin/ruby_executable_hooks:15:in `eval'
/Users/pikender/.rvm/gems/ruby-2.3.1@spree/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
Updating to latest Spree
I am trying to update base spree to latest stable release (say, 3-2-stable) for obvious fixes/updates. But, there are other libraries like spree_ams which need compulsorily spree_core (~> 3.0.0) even in their latest update.
This and such other dependencies are making it really difficult to upgrade this shopspree-sales-app. Any thoughts on how can this be handled ?
discontinue_on
Hi,
spree_product's discontinue_on was introduced recently. The iOS and Android apps are displaying discontinued products.
I suspect the places to implement the code are below:
app/serializers/spree/product_serializer.rb
app/controllers/concerns/product_search.rb
app/indexes/spree_index.rb
am I on the right path?
Please help me update this codebase so the mobile apps will work with Spree 3.1 onward.
-Nghia
Errors after basic configuration
Ruby - ruby 2.3.0
Rails - 4.2.4
I was able to get API working by installing https://github.com/vinsol-spree-contrib/shopspree-sales-app. I am able to hit documentation URL and documentation page shows up.
However, GET api/ams/home got hit once and then it gave this error.
And, GET api/ams/products shows TCP connection error.
Can someone help here on what is wrong ?
Using Elastic Search on Heroku
Hi,
I deployed the app here : http://agile-citadel-81006.herokuapp.com/. However, I am unable to configure source code to use Bonsai/any other plugin for elastic search in Heroku as such GET api/ams/products fail with connection error. I tried this code but do not think Elasticsearch's client is getting updated -
if ENV['BONSAI_URL']
logs.d
Elasticsearch::Model.client = Elasticsearch::Client.new({url: ENV['BONSAI_URL'], logs: true})
BONSAI_INDEX_NAME = ENV['BONSAI_URL'][/[^\/]+$/]
else
app_name = Rails.application.class.parent_name.underscore.dasherize
BONSAI_INDEX_NAME = "#{app_name}-#{Rails.env}"
end
Can you please point to any direction ? I just want GET /products to work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.