[Koha-bugs] [Bug 26129] Add a new 'configurations' table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 29 21:22:02 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26129

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #118971|0                           |1
        is obsolete|                            |

--- Comment #18 from David Nind <david at davidnind.com> ---
Created attachment 118983
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118983&action=edit
Bug 26129: Add Koha::Configuration(s) classes

This patch adds the Koha::Configuration(s) classes and tests. It is
similar to the Koha::CirculationRules(s) classes, but with simpler use
cases for now. There's no special handling for '*' as it is expected to
be passed undef instead.

It allows to set arbitrary configuration entries either globally or for
specific library_id, category_id or item_type.

Attribute names match the ones agreed for the API.

To test:
1. Apply this patches
2. Run:
   $ updatedatabase
=> SUCCESS: The atomic update is applied correctly
3. Run:
   $ reset_all
=> SUCCESS: kohastructure.sql is loaded without issues
4. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Configurations.t
=> SUCCESS: Tests pass!
5. Sign off :-D

Sponsored-by: ByWater Solutions

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list