Git Product home page Git Product logo

Comments (1)

seand7565 avatar seand7565 commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.