[Koha-bugs] [Bug 24356] objects.search prefetch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 3 17:13:15 CET 2020


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

Agustín Moyano <agustinmoyano at theke.io> changed:

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

--- Comment #16 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 98348
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98348&action=edit
Bug 24356: Make objects.search prefetch embedded relations

This patch makes the Koha::Object(s) derived classes expose information
about prefetch-able relations. This is then used by a new helper to
generate the prefetch information for the DBIC query.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Object* \
           t/db_dependent/Koha/REST/Plugin/Objects.t \
           t/Koha/REST/Plugin/Query.t
=> SUCCESS: Tests pass!
3. Sign off :-D

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


More information about the Koha-bugs mailing list