[Bug 21684] New: Koha::Object[s]->delete methods must behave identically as the corresponding DBIx::Class ones
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Bug ID: 21684 Summary: Koha::Object[s]->delete methods must behave identically as the corresponding DBIx::Class ones Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: major Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: jonathan.druart@bugs.koha-community.org Reporter: jonathan.druart@bugs.koha-community.org QA Contact: testopia@bugs.koha-community.org for instance: Koha::Cities->find(1)->delete and $schema->resultset('City')->delete must returns the same value, as well as throw an exception if needed. Same for Koha::Objects->delete This is the result of a discussion started on bug 21337. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=21337 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 81317 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81317&action=edit Bug 21684: (QA follow-up) On the road to a perfect delete Adjusting Koha::Patrons->delete: We should not throw an exception if we get a -1 from Patron->delete. A zero should trigger an exception. And an undef too since it is probably a DBIx exception.. Test plan: Run t/db_dependent/Koha/Patrons.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 81318 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81318&action=edit Bug 21684: Add auto_savepoint to DBIC connection https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Cookb... Otherwise: DBIx::Class::Storage::txn_rollback(): A txn_rollback in nested transaction is ineffective! (depth 1) at t/db_dependent/Koha/Objects.t line 274 Possible side-effects? Slowness? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 81319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81319&action=edit Bug 21684: Add tests to show some of the discrepancies -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com, | |martin.renvoize@ptfs-europe | |.com, | |nick@bywatersolutions.com, | |tomascohen@gmail.com Status|ASSIGNED |In Discussion --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I think we should remove our specific code from Koha::Object->delete, but that will imply we will need to adjust callers code. I am in favour of such move but I would like people to give their opinion. It seems to be too big (side-effects) to make it part of 18.11 anyway. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #2)
Created attachment 81318 [details] [review] Bug 21684: Add auto_savepoint to DBIC connection
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/ Cookbook.pod#Nested-transactions-and-auto-savepoints
Otherwise: DBIx::Class::Storage::txn_rollback(): A txn_rollback in nested transaction is ineffective! (depth 1) at t/db_dependent/Koha/Objects.t line 274
Possible side-effects? Slowness?
Would be nice to have, and has support in InnoDB. We should be sure about performance though. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81319|0 |1 is obsolete| | --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 90937 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90937&action=edit Bug 21684: Add tests to show some of the discrepancies -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #4)
I am in favour of such move but I would like people to give their opinion.
Is silence acquiescence? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81317|0 |1 is obsolete| | Attachment #81318|0 |1 is obsolete| | --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96218 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96218&action=edit Bug 21684: Fix delete methods and add more tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I think we should follow this path. If you all agree I will provide a follow-up to fix the different calls. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #10 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Distracted by: warn "Deleted $count patrons\n" if $params->{verbose}; in Koha/Patrons.pm ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #11 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Not sure if this works: + ok( ref($r_us) && ref($r_them), + 'Successful delete should return the object ' ); Note that it depends on the storage backend: "The return value is a pass through of what the underlying storage backend returned, and may vary." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_20_05_target --- Comment #12 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I'm on board with this one.. we should be consistent in our handling of object return values. For consistency with DBIx::Class (which underpins our objects) we should stick to exceptions for failure cases. If you are able to continue this work Jonathan, that would be great :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #13 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to Marcel de Rooy from comment #11)
Not sure if this works: + ok( ref($r_us) && ref($r_them), + 'Successful delete should return the object ' );
Note that it depends on the storage backend: "The return value is a pass through of what the underlying storage backend returned, and may vary."
Hmm, well at the present time we only support MySQL and MariaDB as our backends and I believe those are consistent with one another in this regard. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #14 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96254 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96254&action=edit Bug 21684: Adjust some tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |24150 --- Comment #15 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Actually it seems that the only occurrence is:members/deletemem.pl but actually it is an improvement, so could be done on a separate bug report I did not find any others delete statement where the return value where useful, but I may be wrong here! Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24150 [Bug 24150] Add missing Koha::Old::*[s] classes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #90937|0 |1 is obsolete| | Attachment #96218|0 |1 is obsolete| | Attachment #96254|0 |1 is obsolete| | --- Comment #16 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 96270 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96270&action=edit Bug 21684: Add tests to show some of the discrepancies Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #17 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 96271 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96271&action=edit Bug 21684: Fix delete methods and add more tests Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #18 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 96272 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96272&action=edit Bug 21684: Adjust some tests Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #96270|0 |1 is obsolete| | --- Comment #19 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 96429 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96429&action=edit Bug 21684: Add tests to show some of the discrepancies Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #96271|0 |1 is obsolete| | --- Comment #20 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 96430 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96430&action=edit Bug 21684: Fix delete methods and add more tests Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #96272|0 |1 is obsolete| | --- Comment #21 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 96431 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96431&action=edit Bug 21684: Adjust some tests Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #22 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Thanks Jonathan, Passing QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |enhancement -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |20.05.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #23 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work everyone! Pushed to master for 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #24 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work everyone! Pushed to master for 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_20_05_target | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed Depends on| |17669 --- Comment #25 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- # Failed test 'Test delete via UploadedFile as well as UploadedFiles' # at t/db_dependent/Upload.t line 193. DBIx::Class::Row::delete(): Not in database at /kohadevbox/koha/Koha/Object.pm line 219 Failing test, the previous test was expecting 0E0 if the delete failed, now it raises an exception. I think we can simply adjust the test accordingly. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17669 [Bug 17669] Add purging temporary uploads to cleanup_database -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #26 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96872 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96872&action=edit Bug 21684: Fix UploadedFile[s]->delete Tests were failing with: # Failed test 'Test delete via UploadedFile as well as UploadedFiles' # at t/db_dependent/Upload.t line 193. DBIx::Class::Row::delete(): Not in database at /kohadevbox/koha/Koha/Object.pm line 219 I am not sure this patch is perfect, a set of uploaded files should be deleted in a transaction, which would be rollback if something is wrong. But it will be tricky to restore the files after they have been deleted. It seems that we should deal with that with a more complicated process and should be part of a separate bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #27 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Marcel, could I get your opinion on this follow-up? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #28 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96888 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96888&action=edit Bug 21684: Koha::Object->delete must return a Koha::Object Not a DBIx::Class object. Tests have been added, add Bookseller.t fixed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #29 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #25)
# Failed test 'Test delete via UploadedFile as well as UploadedFiles' # at t/db_dependent/Upload.t line 193. DBIx::Class::Row::delete(): Not in database at /kohadevbox/koha/Koha/Object.pm line 219
Failing test, the previous test was expecting 0E0 if the delete failed, now it raises an exception. I think we can simply adjust the test accordingly.
Yes, we should bring that in line with the changed delete subs. The subroutines in UploadedFile[s] also need attention.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #30 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #27)
Marcel, could I get your opinion on this follow-up?
Looking now -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #31 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- How do we view this line now in both modules? return $rv==0 ? "0E0" : $rv; Also in delete_missing. The Upload.t test also refers to -1 values. Are they still possible? At first glance the test should still be adjusted a bit more, although it passes now. Second patch + my $deleted = $self->_result()->delete; + if ( ref $deleted ) { + my $object_class = Koha::Object::_get_object_class( $self->_result->result_class ); + $deleted = $object_class->_new_from_dbic($deleted); + } + return $deleted; Isnt this a bit expensive to do since we will generally not even look at what we get back? Most often $obj->delete is not even tested. Parameterize the return?? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #32 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96895 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96895&action=edit Bug 21684: (follow-up) Fix UploadedFile[s]->delete This can be squashed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #33 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Marcel de Rooy from comment #31)
How do we view this line now in both modules? return $rv==0 ? "0E0" : $rv; Also in delete_missing.
I do not understand exactly what you mean.
The Upload.t test also refers to -1 values. Are they still possible? At first glance the test should still be adjusted a bit more, although it passes now.
Indeed, done.
Second patch + my $deleted = $self->_result()->delete; + if ( ref $deleted ) { + my $object_class = Koha::Object::_get_object_class( $self->_result->result_class ); + $deleted = $object_class->_new_from_dbic($deleted); + } + return $deleted; Isnt this a bit expensive to do since we will generally not even look at what we get back?
I do not think it's expensive, the _new_from_dbic will do nothing if the object is not reused after ->delete. So only _get_object_class will be effective.
Most often $obj->delete is not even tested.
It is widely tested in Objects.t
Parameterize the return??
Not a good idea IMO. We must behave like DBIx::Class, it's the whole point of this patchset. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #34 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #33)
I do not understand exactly what you mean. Short version: Get rid of 0E0 ?
I do not think it's expensive, the _new_from_dbic will do nothing if the object is not reused after ->delete. So only _get_object_class will be effective. Sounds good to me.
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #35 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Marcel de Rooy from comment #34)
(In reply to Jonathan Druart from comment #33)
I do not understand exactly what you mean. Short version: Get rid of 0E0 ?
How? It's the expected behavior (DBI return value). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #36 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- As I wrote in the commit message, IMO the whole thing needs a rewrite, to deal with deleting a set in a transaction. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #37 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #35)
(In reply to Marcel de Rooy from comment #34)
(In reply to Jonathan Druart from comment #33)
I do not understand exactly what you mean. Short version: Get rid of 0E0 ?
How? It's the expected behavior (DBI return value).
Theoretically it might not be DBI. And DBIx depends on the backend. But we can leave it for now; much more of this kind. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #38 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96898 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96898&action=edit Bug 21684: Fix Hold.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | --- Comment #39 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- 4 followups pushed.. code all makes sense to me and resolves the failures. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 --- Comment #40 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work everyone! Pushed to master for 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Bug 21684 depends on bug 24150, which changed state. Bug 24150 Summary: Add missing Koha::Old::*[s] classes https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24150 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Joy Nelson <joy@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |RESOLVED Resolution|--- |FIXED CC| |joy@bywatersolutions.com --- Comment #41 from Joy Nelson <joy@bywatersolutions.com> --- Not backported to 19.11.x because 24150 cannot be backported. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21684 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=26639 --- Comment #42 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #2)
Created attachment 81318 [details] [review] Bug 21684: Add auto_savepoint to DBIC connection
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/ Cookbook.pod#Nested-transactions-and-auto-savepoints
Otherwise: DBIx::Class::Storage::txn_rollback(): A txn_rollback in nested transaction is ineffective! (depth 1) at t/db_dependent/Koha/Objects.t line 274
Possible side-effects? Slowness?
This patch has been moved to bug 26639. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org