]> git.koha-community.org Git - koha.git/commit
Bug 35536: Reorder rollbacks
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 14 Dec 2023 07:54:22 +0000 (07:54 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 22 Jul 2024 12:00:11 +0000 (14:00 +0200)
commitf11c05bbdd313082c4a97a5410a6e6ce606170d7
treee3093827e10242bea67e5f76f5496bb6fa0ec076
parent62f25747326754b42b1454513cecb90004f92204
Bug 35536: Reorder rollbacks

Time to move all RemovePlugins calls BEFORE rollbacks.
Broken.t did not even include a transaction! Some modules
are removed there as well.

Test plan:
Search for wrong order with:
  grep -Pzo "txn_rollback;\n.*RemovePlugins" $(git grep -l RemovePlugins)
  No occurrences left? Think of another grep :)
Check number of records in plugin_data/methods.
Repeat: prove $(git grep -l Koha::Plugin | grep -P "^t\/db")
And check number of records again. Same?

Bonus: Apply TestMR plugin patch (marked DO NOT PUSH).
Run perl -MKoha::Plugins -e"Koha::Plugins->new->InstallPlugins".
Check plugin records in database.
Keep those records but remove last patch from git.
Run previous prove and verify no data changes since last check.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e32174f29ac1b06b60b160a0d37c6aaf767c9126)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Plugins/BackgroundJob.t
t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t
t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t
t/db_dependent/Koha/Plugins/Broken.t
t/db_dependent/Koha/Plugins/Circulation_hooks.t
t/db_dependent/Koha/Plugins/Patron.t
t/db_dependent/Koha/Plugins/authority_hooks.t