chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

schedules: make sure database operations are in a transaction #897

Closed tahini closed 2 months ago

tahini commented 3 months ago

Currently, all operations on schedules, periods, trips are independent. Any error while saving any part of the schedule can thus cause the whole schedule to be in an invalid state.

Current developments is adding support of transaction to the database operations, but the transactions need to come from the outside.

This issue is to track that once this development is done and transactions supported in all operations, all schedule database operation should be part of a transaction, even if it is not provided by the caller.

tahini commented 2 months ago

Wait, I did fix an issue with my latest PR #936! This is fixed with commit 3aad434e907d8a5d8194b7b324dc505555b231e1