[koha-commits] main Koha release repository branch master updated. v19.05.00-1127-g58da3de

Git repo owner gitmaster at git.koha-community.org
Tue Oct 29 13:43:52 CET 2019


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  58da3de84ada910098024e535a7d2bbaf6caf84b (commit)
       via  2ae0cc83f301e5e0215b35350eea39607f93e688 (commit)
       via  5d2b33bcac3f273ee08c1d1b5f2e6f0b922a99b3 (commit)
       via  c98c1994ea96c90914b8259cc6f6eb0537bafb4c (commit)
      from  2a3429b65d47163a98a47f98458ce5c7262421a5 (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 58da3de84ada910098024e535a7d2bbaf6caf84b
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Mon Sep 23 12:48:14 2019 -0300

    Bug 23667: Add route to GET /items
    
    This patchset introduces a route to fetch items. It relies on the
    already implemented code/mappings to get a single item.
    
    To test:
    - Apply this patches
    - Run:
      $ kshell
     k$ prove t/db_dependent/api/v1/items.t
    => SUCCESS: Tests pass!
    - Try the endpoint with your favourite API tool (Postman?)
    - Sign off :-D
    
    Note: to do exact searching on barcode, you need to build the query like
    this:
    
    GET /api/v1/items?external_id=<your_barcode>&_match=exact
    
    Signed-off-by: Jesse Maseto <jesse at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit 2ae0cc83f301e5e0215b35350eea39607f93e688
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Mon Sep 23 12:48:02 2019 -0300

    Bug 23667: Add spec
    
    Signed-off-by: Jesse Maseto <jesse at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit 5d2b33bcac3f273ee08c1d1b5f2e6f0b922a99b3
Author: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Date:   Thu Oct 24 14:41:19 2019 +0100

    Bug 22706: (QA follow-up) Restore location of logaction
    
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit c98c1994ea96c90914b8259cc6f6eb0537bafb4c
Author: Magnus Enger <magnus at libriotech.no>
Date:   Wed Apr 24 14:59:03 2019 +0200

    Bug 22706: Add plugin hooks for Norwegian national patron database
    
    The main point of this patch is to make it possible to integrate Koha
    with the Norwegian national patron database (NNPDB). Code for this was
    earlier introduced in Bug 11401 and removed again in Bug 21068.
    
    To test this is mainly a question of spotting regressions, it should
    still be possible to set and change a password in all possible ways:
    - Setting a password for a new user
    - Changing a password in the staff client
    - Changing a password in the OPAC
    If these work as expected, everything should be OK.
    
    A nice side effect of this work is that it will allow for plugins that
    validate passwords. I have created a tiny plugin that enforces PIN
    codes of 4 digits. (Yeah, I know, those are the worst passwords, but
    some libraries do require them.) It is published here:
    https://github.com/Libriotech/koha-plugin-pin
    To test this way, install the plugin and try to change the password
    of an exsisting user to something that is not a 4 digit PIN. You
    should get an error that says "The password was rejected by a plugin".
    
    Signed-off-by: Brendan Gallagher <brendan at bywatersolutions.com>
    
    Updated 2019-10-23:
    - Moved the plugin checks to before the call to $self->SUPER::store to
      make sure patrons are not saved if the password fails a plugin check
    - Made the plugin checks in set_password respect skip_validation while
      retaining the functionality for NNPDB
    
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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

Summary of changes:
 Koha/Exceptions/Password.pm                        |    6 +-
 Koha/Patron.pm                                     |   54 +++++++++++++-
 Koha/REST/V1/Items.pm                              |   53 ++++++++++++++
 api/v1/swagger/paths.json                          |    9 ++-
 api/v1/swagger/paths/items.json                    |   76 ++++++++++++++++++++
 .../prog/en/modules/members/member-password.tt     |    3 +
 members/member-password.pl                         |    3 +
 t/db_dependent/api/v1/items.t                      |   60 +++++++++++++++-
 8 files changed, 258 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list