Comments (10)
Can we get more info on this? Is this exceptions chucked due to constraint violations? Exceptions due to shit code?
from website.
It seems exceptions thrown before db.session.commit don't stop the changes being saved. This means (for gocardless_start) if payment.bill_url() fails, you've still bought the tickets, but didn't get redirected, so they end up in limbo.
We probably need to add a top-level request exception handler that calls db.session.rollback. Alternatively, it might be sqlalchemy not using transactions correctly with sqlite (haven't tested with psql).
from website.
This sounds like the db connection has autocommit set?
from website.
Probably, I assumed that was Flask's responsibility. So the wrapper also needs to call begin.
from website.
i can test this with psql if it would help?
from website.
Heh, I was just about to do the same. Will leave it if you're confident :)
from website.
done, what exactly is the test case?
there is a db.session.commit() in buy_prepay_tickets so we are commiting before we generate the bill url...
maybe move the commit to just before we return the redirect?
from website.
Looks like this does not happen with postgres so we don't have to worry about it.
Not closeing, but removing from the milestone.
from website.
If this doesn't happen with postgres, why aren't we closing it?
from website.
If the same test been run against sqlite, I'm happy to. Will do this tomorrow.
from website.
Related Issues (20)
- CfP Overhaul HOT 1
- Allow attendee-submitted layers on the map
- "Your upcoming shifts" page should be sorted by date/time HOT 5
- Volunteer role admins should be able to add, remove and alter shifts
- Volunteer role admin page improvements HOT 1
- "quick tasks" for volunteers HOT 4
- Schedule integration in volunteer shift sign-up view
- broken schedule view for past events/entries HOT 1
- schedule filter should have default view options preselected even for past events HOT 1
- Link to the map HOT 1
- Schedule versioning + changelog HOT 4
- CFP Proposals should be able to happen more than once HOT 7
- Allow multiple speakers to be attached to a CFP proposal HOT 1
- Add concept of resources to permission system HOT 1
- may_record doesn't update in admin proposal page
- Make it MUCH clearer that we do not permit Q&A except in exceptional circumstances HOT 1
- /static/icons/device-camera-video.svg has gone missing HOT 2
- "Video recording lost" flag on CfP items HOT 1
- Email speakers when videos are published HOT 5
- Check out Playwright
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 website.