discourse/app
David Taylor 32db976156 FIX: Stop race condition when topic notification jobs are scheduled during a database transaction
This was not picked up by tests because scheduled jobs are run immediately
and in the current thread (and therefore the current database transaction).

This particular case sometimes occurs inside multiple nested transactions,
so simply moving the offending line outside of the transaction is not enough.

Implemented TransactionHelper, which allows us to use `TransactionHelper.after_commit`
to define code to be run after the current transaction has been committed.
2018-07-18 22:04:43 +01:00
..
assets make code prettier 🎀 2018-07-18 13:09:16 +02:00
controllers FEATURE: selectable avatars 2018-07-18 12:57:43 +02:00
helpers FIX: Stop race condition when topic notification jobs are scheduled during a database transaction 2018-07-18 22:04:43 +01:00
jobs FEATURE: selectable avatars 2018-07-18 12:57:43 +02:00
mailers PERF: reduce querying when creating notifications 2018-07-11 12:38:11 +10:00
models FIX: Stop race condition when topic notification jobs are scheduled during a database transaction 2018-07-18 22:04:43 +01:00
serializers FEATURE: navigate to first post and auto bump category settings 2018-07-16 18:10:35 +10:00
services FEATURE: Groundwork for user-selectable theme components 2018-07-12 14:18:21 +10:00
views FEATURE: Groundwork for user-selectable theme components 2018-07-12 14:18:21 +10:00