Skip to content

Comments

Call add_to_transaction on #restore! as well#297

Open
Empact wants to merge 1 commit intorubysherpas:rails4from
brigade:add-to-transaction
Open

Call add_to_transaction on #restore! as well#297
Empact wants to merge 1 commit intorubysherpas:rails4from
brigade:add-to-transaction

Conversation

@Empact
Copy link
Contributor

@Empact Empact commented Jan 13, 2016

Under certain conditions, combining the use of paranoia and
counter_culture can result in callbacks not being run. This is
perhaps due to an interaction between after_commit_action and
user-defined after_commit callbacks, but unfortunately I have been
unable to pin this down in tests.

Note this makes restore! roughly symmetric with delete/destroy in
its existing use of add_to_transaction.

Under certain conditions, combining the use of paranoia and
counter_culture can result in callbacks not being run. This is
perhaps due to an interaction between after_commit_action and
user-defined after_commit callbacks, but unfortunately I have been
unable to pin this down in tests.

Note this makes restore! roughly symmetric with delete/destroy in
its existing use of add_to_transaction.
@Empact
Copy link
Contributor Author

Empact commented Jan 13, 2016

I made some fairly extensive efforts to repro under test then gave up. What do you guys think?

@brigade-gerrit brigade-gerrit deleted the add-to-transaction branch January 28, 2016 03:18
@shosti
Copy link

shosti commented Feb 8, 2016

BTW this will probably be affected by #274 (and should have a fix similar to #309).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants