[openSUSE/open-build-service] 99272f: Some ActiveRecord callbacks reset object reference
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 99272f92ce7683e4d9d21bf5f56f6f462b8a8ae1 https://github.com/openSUSE/open-build-service/commit/99272f92ce7683e4d9d21b... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2022-07-12 (Tue, 12 Jul 2022) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Some ActiveRecord callbacks reset object reference We came across this with Project.delete_on_backend. `Thread.current[:user]` was nil an an `after_destroy_commit` callback, running the same method as `after_destroy` callback it was a `User` object. Commit: 517c8b9671822b475a5706e9bc4a008e65fdf667 https://github.com/openSUSE/open-build-service/commit/517c8b9671822b475a5706... Author: Dani Donisa <dani.doni@gmail.com> Date: 2022-07-13 (Wed, 13 Jul 2022) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Merge pull request #12798 from hennevogel/bugfix/after-destroy-commit Workaround after_destroy_commit loosing Thread variables Compare: https://github.com/openSUSE/open-build-service/compare/bf645bb26691...517c8b...
participants (1)
-
Dani Donisa