[koha-commits] main Koha release repository branch 19.11.x updated. v19.11.01-114-g48e304c7ab
Git repo owner
gitmaster at git.koha-community.org
Sat Jan 18 17:50:13 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, 19.11.x has been updated
via 48e304c7abab63eefbeb7b9d846463b5dbbc0c8f (commit)
via 59a92c1036ce73e56410c8ff317e19550fdb2e99 (commit)
from 502c8d046aee82bd82fd894615a6d32ec5e635bc (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 48e304c7abab63eefbeb7b9d846463b5dbbc0c8f
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>
Signed-off-by: Joy Nelson <joy at bywatersolutions.com>
commit 59a92c1036ce73e56410c8ff317e19550fdb2e99
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>
Signed-off-by: Joy Nelson <joy at bywatersolutions.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