[koha-commits] main Koha release repository branch 18.05.x updated. v18.05.03-43-gab79f3f

Git repo owner gitmaster at git.koha-community.org
Thu Sep 20 13:22:41 CEST 2018


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, 18.05.x has been updated
       via  ab79f3fc67a06ea7383270ae7f00f97605c3a4d0 (commit)
       via  f243f8f0123a29752f37df0cc8ad25a49ba066e6 (commit)
       via  0f45f3afdf67193ec849f72955b6de4fbeb17db0 (commit)
      from  2e8f370f26836a257d27ad0be4adb4e6db3f9653 (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 ab79f3fc67a06ea7383270ae7f00f97605c3a4d0
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Mon Jul 23 11:14:47 2018 -0300

    Bug 21116: Add API routes through plugins
    
    This patch adds plugins the capability of injecting new routes on the
    API.
    
    The plugins should provide the following methods to be considered valid API-generating plugins:
    
    - 'api_routes': returning the 'path' component of the OpenAPI specification corresponding to the routes served by the plugin
    - 'api_namespace': it should return a namespace to be used for grouping the endpoints provided by the plugin
    
    otherwise, they will be just skipped.
    
    All plugin-generated routes will be added the 'contrib' namespace, and
    will end up placed inside /contrib/<namespace>, where <namespace> is what the 'api_namespace' returns.
    
    A sample endpoint will be added to the Kitchen Sink plugin, and tests
    are being written.
    
    To test:
    - Apply this patches
    - Run:
      $ kshell
     k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
    => SUCCESS: Tests pass!
    - Install the (latest) KitchenSink plugin
    - Point your browser to the API like this:
      http://koha-intra.myDNSname.org:8081/api/v1/.html
    => SUCCESS: The /contrib/kitchensink/patrons/:patron_id/bother endpoint
    implemented by the plugin has been merged!
    - Sign off! :-D
    
    Signed-off-by: Benjamin Rokseth <benjamin.rokseth at deichman.no>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Alex Arnaud <alex.arnaud at biblibre.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    (cherry picked from commit 3fedae85f25ef5f587d567b51b86aab776d87311)
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit f243f8f0123a29752f37df0cc8ad25a49ba066e6
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Mon Aug 27 16:24:09 2018 -0300

    Bug 21116: Unit tests
    
    This path implements unit tests for the route-from-plugin development.
    It adds the required methods to the Koha::Plugin::Test plugin
    distributed along with the tests. A second plugin implementing invalid
    OpenAPI specs is added (Koha::Plugin::BadAPIRoute).
    
    Edit: I made terminology changes to make it less rude.
    
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Alex Arnaud <alex.arnaud at biblibre.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    (cherry picked from commit 46c992948ea28ae2bebc7f9042df6434319b80bf)
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit 0f45f3afdf67193ec849f72955b6de4fbeb17db0
Author: Nick Clemens <nick at bywatersolutions.com>
Date:   Tue Jul 10 13:48:07 2018 +0000

    Bug 20564: Don't use system to unzip files
    
    To test:
    1 - Setup a zip file for patron images and cover images
    2 - Test each tool
    3 - Get a '500 error' after upload (note images do upload and attach)
    4 - Apply patch
    5 - Restart all the things
    6 - Test agtain, uploads should complete and results display
    
    Signed-off-by: George Williams <george at nekls.org>
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    (cherry picked from commit 8b806227c130e86712e3e5bda61520447c60671d)
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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

Summary of changes:
 Koha/Exceptions/Plugin.pm                      |   84 ++++++++++++++
 Koha/REST/Plugin/PluginRoutes.pm               |  140 ++++++++++++++++++++++++
 Koha/REST/V1.pm                                |   37 +++++--
 t/db_dependent/Koha/REST/Plugin/PluginRoutes.t |   83 ++++++++++++++
 t/lib/Koha/Plugin/BadAPIRoute.pm               |   92 ++++++++++++++++
 t/lib/Koha/Plugin/Test.pm                      |   65 +++++++++++
 tools/picture-upload.pl                        |    4 +-
 tools/upload-cover-image.pl                    |    4 +-
 8 files changed, 500 insertions(+), 9 deletions(-)
 create mode 100644 Koha/Exceptions/Plugin.pm
 create mode 100644 Koha/REST/Plugin/PluginRoutes.pm
 create mode 100644 t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
 create mode 100644 t/lib/Koha/Plugin/BadAPIRoute.pm


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list