Bug 18285

Summary: Koha::Database schema cache accessors
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: Architecture, internals, and plumbingAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers, josef.moravec, m.de.rooy, mtj, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 18226, 18286    
Attachments: Bug 18285 - Koha::Database schema cache accessors
Bug 18285: Koha::Database schema cache accessors
[SIGNED-OFF] Bug 18295: C4::Items - get_itemnumbers_of
Bug 18285: Koha::Database schema cache accessors

Description Olli-Antti Kivilahti 2017-03-16 19:01:37 UTC
Safe way of getting and flushing the $database->{schema} -cache.

This is needed by Test::DBIx::Class to overcome pre-initialization connection caching from C4::Context and others.
Comment 1 Olli-Antti Kivilahti 2017-03-16 19:07:32 UTC
Created attachment 61185 [details] [review]
Bug 18285 - Koha::Database schema cache accessors

Safe way of getting and flushing the $database->{schema} -cache.

This is needed by Test::DBIx::Class to overcome pre-initialization connection
caching from C4::Context and others.

See Buug 18286
Comment 2 Marc VĂ©ron 2017-03-29 14:02:26 UTC
I have the impression that 18226 can be removed from 'Blocks' because 18286 blocks 18226 as well (see dependency graph https://bugs.koha-community.org/bugzilla3/showdependencygraph.cgi?id=18285)
Comment 3 Marcel de Rooy 2017-05-02 14:43:17 UTC
Created attachment 62967 [details] [review]
Bug 18285: Koha::Database schema cache accessors

Safe way of getting and flushing the $database->{schema} -cache.

This is needed by Test::DBIx::Class to overcome pre-initialization connection
caching from C4::Context and others.

See Bug 18286.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Josef Moravec 2017-05-31 18:48:36 UTC Comment hidden (obsolete)
Comment 5 Josef Moravec 2017-05-31 18:49:57 UTC Comment hidden (obsolete)
Comment 6 Jonathan Druart 2017-06-05 20:47:14 UTC
Created attachment 64003 [details] [review]
Bug 18285: Koha::Database schema cache accessors

Safe way of getting and flushing the $database->{schema} -cache.

This is needed by Test::DBIx::Class to overcome pre-initialization connection
caching from C4::Context and others.

See Bug 18286.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 7 Jonathan Druart 2017-06-05 20:56:51 UTC
Pushed to master for 17.11, thanks to everybody involved!
Comment 8 Fridolin Somers 2017-06-13 07:27:42 UTC
Enhancement not pushed to 17.05.x