[koha-commits] main Koha release repository branch 17.11.x updated. v17.11.12-50-gbdb9478

Git repo owner gitmaster at git.koha-community.org
Thu Nov 29 14:58:11 CET 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, 17.11.x has been updated
       via  bdb94784a938bdb61e478be26ba56dfd03b99d9a (commit)
       via  16e0a19daf8874fccb4ba01548041b9d4ac9729a (commit)
       via  8a5f84725faf27f092dc12731f8d11783fd4f717 (commit)
      from  bfc78771856c8ae074202922d3d9f7594cb2b514 (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 bdb94784a938bdb61e478be26ba56dfd03b99d9a
Author: Fridolin Somers <fridolin.somers at biblibre.com>
Date:   Thu Nov 29 14:41:54 2018 +0100

    Bug 21116: (RMaint follow-up) do not use Koha::Exceptions::Exception

commit 16e0a19daf8874fccb4ba01548041b9d4ac9729a
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>
    (cherry picked from commit ab79f3fc67a06ea7383270ae7f00f97605c3a4d0)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

commit 8a5f84725faf27f092dc12731f8d11783fd4f717
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>
    (cherry picked from commit f243f8f0123a29752f37df0cc8ad25a49ba066e6)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

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

Summary of changes:
 Koha/Exceptions/Plugin.pm                      |   79 +++++++++++++
 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 +++++++++++
 6 files changed, 489 insertions(+), 7 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