Page MenuHomePhabricator

Rollback as appropriate on db failure in AddDonation
Closed, ResolvedPublic5 Estimated Story Points

Description

When update token generation fails, the UC will fail, however the stuff written to the db before will not be rolled back. We need to do some transaction work here. (TODO present in the code.)

Event Timeline

JeroenDeDauw renamed this task from Rollback as appropriate on failure in AddDonation to Rollback as appropriate on db failure in AddDonation.Mar 18 2016, 12:31 PM
JeroenDeDauw created this task.
JeroenDeDauw updated the task description. (Show Details)

Since we write the tokens on prePersist(), there is only one statement carried out during persistence. There is no need to rollback anything anymore.

Tobi_WMDE_SW claimed this task.