Comments (1)
After looking into it, I think this is the issue:
After you check out the first time, the stock item has the changes you made to it stored as a sample change. The next time you check out, those sample changes are loaded in - but the way they are loaded in sets them as unsaved changes. And of course you can't lock something with unsaved changes, so this error happens when Solidus tries to get a lock on it.
Possible solutions:
Don't load changes for stock items
Override the method to do the same thing without getting a lock (we're not actually saving anything so it shouldn't be necessary?)
Override whatever lock method in Rails that is called to sort of "soft disable" locking - meaning locking won't actually do anything in this app (since it doesn't need to) - this might be good because this issue could exist elsewhere in more remote circumstances.
from solidus-demo.
Related Issues (20)
- PayPal Commerce Platform product checkout clears guest token
- Payment methods are visible by everyone on production HOT 1
- Frontend is missing a favicon
- Destroy old database entries
- Add a procfile that migrates the app before release
- Taxon icon exists? call fails and breaks the page
- Categories not resetting? HOT 2
- Payments on existing orders don't appear to be unique to individuals HOT 1
- Users should be able to "reset" the demo data
- Regenerate images
- Increase visibility of admin
- Variant color is not reflected in the cart for one product
- The Cart link on the top bar, is broken
- Selecting a color, the product image doesn't change
- demo.solidus.io does not work HOT 2
- Upgrade to the latest version of solidus HOT 1
- Update Solidus Demo and its Docker image(s) HOT 1
- Update Solidus Demo with the latest Admin
- Implement notification banner for upcoming Solidus Demo redesign
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.
from solidus-demo.