Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PATCH doesn't rollback the session #356
When a PATCH request goes wrong, raising an SQLAlchemy exception like IntegrityError, session.rollback() should be called, like in the method that handles POST requests. More specifically, this except should call
A workaround I found is passing the sqlalchemy exception to the
I've added a test & fix for that at: https://github.com/andir/flask-restless/tree/patch_rollback
Test & Fix @ andir@0ad508f
Is that what you had in mind? If so I'll open a PR.