[koha-commits] main Koha release repository branch master updated. v19.11.00-234-g954c742

Git repo owner gitmaster at git.koha-community.org
Wed Jan 8 16:32:48 CET 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  954c742cc63d569cdba06325904a88097c4cc2ba (commit)
       via  f87ebb9ab1eb61002a5b97f9bf31e2b5d77b25d0 (commit)
      from  9bcf22b0d57fce9d0c38006cd204e3a1cba5b361 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 954c742cc63d569cdba06325904a88097c4cc2ba
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Mon Dec 23 12:03:12 2019 -0300

    Bug 24228: Make ->to_api params a hashref
    
    This patch makes the parameters for Koha::Object(s)->to_api a hashref
    preparing the ground for new parameters. The proposed syntax is:
    
    $object->to_api(
        {
            embed => {
                'items' => {
                    'children' => {
                        'homebranch' => {}
                    }
                }
            }
        }
    );
    
    Tests are added for the Koha::Objects implementation and tests for
    Koha::Object are adjusted to the new syntax, and a test for the single
    result accessor is added as well.
    
    To test:
    1. Apply this patches
    2. Run:
       $ kshell
      k$ prove t/db_dependent/Koha/Object.t t/db_dependent/Koha/Objects.t
    => SUCCESS: Tests pass!
    3. Sign off :-D
    
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit f87ebb9ab1eb61002a5b97f9bf31e2b5d77b25d0
Author: Agustin Moyano <agustinmoyano at theke.io>
Date:   Thu Dec 19 15:50:49 2019 -0300

    Bug 24228: Add parameters to Koha::Object(s)->to_api to automatically embed objects
    
    This patch makes Koha::Object(s)->to_api have an 'embeds' parameter that
    using dot notation (e.g. resource.related_resource.another_one) allows
    embedding objects recursively.
    
    To test:
    1. Apply this patch
    2. prove t/db_dependent/Koha/Object.t
    
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Agustin Moyano <agustinmoyano at theke.io>
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-----------------------------------------------------------------------

Summary of changes:
 Koha/Object.pm                |  105 +++++++++++++++++++++++++++++++++++------
 Koha/Objects.pm               |    4 +-
 t/db_dependent/Koha/Object.t  |   70 ++++++++++++++++++++++++++-
 t/db_dependent/Koha/Objects.t |   65 ++++++++++++++++++++++++-
 4 files changed, 225 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list