discourse/spec
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
..
components FIX: Do not update last seen time for suspended users 2018-07-18 16:04:57 +01:00
fabricators FEATURE: Secondary emails support. 2018-07-16 11:09:49 +08:00
fixtures Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
helpers FIX: Stop race condition when topic notification jobs are scheduled during a database transaction 2018-07-18 22:04:43 +01:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
integrity correct regression and add integrity spec for onceoffs 2018-06-20 09:09:31 +10:00
jobs FEATURE: selectable avatars 2018-07-18 12:57:43 +02:00
lib/backup_restore backup restorer: tidy pg_dump schema portability logic, add test 2018-03-20 10:32:39 +08:00
mailers allow adding tags as a custom subject format for emails (#5846) 2018-07-11 12:24:07 +10:00
models FEATURE: selectable avatars 2018-07-18 12:57:43 +02:00
multisite DEV: improve design of site setting default provider 2018-06-07 14:33:41 +10:00
requests FEATURE: selectable avatars 2018-07-18 12:57:43 +02:00
serializers FEATURE: Secondary emails support. 2018-07-16 11:09:49 +08:00
services FEATURE: Groundwork for user-selectable theme components 2018-07-12 14:18:21 +10:00
support DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rails_helper.rb DEV: Raise an error if any test finishes with more than 1 busy AR connection. 2018-07-11 09:54:01 +08:00