[Koha-bugs] [Bug 36399] New: Better fetch/cache the authorised values

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 22 11:07:24 CET 2024


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

            Bug ID: 36399
           Summary: Better fetch/cache the authorised values
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jonathan.druart at gmail.com
        QA Contact: testopia at bugs.koha-community.org

The code improved recently but it's still not consistent and wrongly done.

We have "special" authorised value category (branches, locations, itemtypes,
etc.) that can be used in some places and not in others.

* C4::Koha::GetAuthorisedValues does not handle them

* Koha/UI/Form/Builder/Item.pm does

* TT plugin AuthorisedValues.GetByCode does not retrieve from cache

etc...

We should have big structs cached in L1.

When we need to access the description of a given value: { category => {
value_1 => { %$av }, etc. }

In other places when we need to fetch a whole (ordered) list: { category => [
@avs ] }

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


More information about the Koha-bugs mailing list