Bugzilla – Attachment 106421 Details for
Bug 25845
Cannot limit system logs to 'api' interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25845: Add 'api' to the log viewer interface options
Bug-25845-Add-api-to-the-log-viewer-interface-opti.patch (text/plain), 2.61 KB, created by
Nick Clemens (kidclamp)
on 2020-06-30 00:41:31 UTC
(
hide
)
Description:
Bug 25845: Add 'api' to the log viewer interface options
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-06-30 00:41:31 UTC
Size:
2.61 KB
patch
obsolete
>From a6ed916eb785d097efb79fe638bfe7e14c1488da Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 23 Jun 2020 11:06:55 -0300 >Subject: [PATCH] Bug 25845: Add 'api' to the log viewer interface options >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch simply adds the API option to the log viewer. > >To test: >1. Have BorrowersLog set >2. Update some patron using the API. For example > curl --location --request PUT 'http://koha:koha@kohadev-intra.mydnsname.org:8081/api/v1/patrons/1' \ >--header 'Content-Type: application/json' \ >--data-raw '{ >"firstname": "Tomasito", >"surname": "None", >"address": "Address", >"category_id": "ST", >"city": "Córdoba", >"library_id": "MPL" >}' >3. Open the log viewer >=> FAIL: There's no way to filter on interface, choosing API >4. Apply this patch >5. Reload the log viewer >=> SUCCESS: There are options to filter by 'API' interface >=> SUCCESS: Filtering by 'API' works >6. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index 259d36d32b..60bc277cb1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -85,6 +85,7 @@ fieldset.rows label.viewlog { > [% CASE 'OPAC' %]OPAC > [% CASE 'SIP' %]SIP > [% CASE 'COMMANDLINE' %]Command-line >+[% CASE 'API' %]API > [% CASE %][% log_interface | html %] > [% END %] > [% END %] >@@ -176,7 +177,7 @@ fieldset.rows label.viewlog { > <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label> > [% END %] > >- [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' ] %] >+ [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' 'API' ] %] > [% IF interfaces.grep(interf).size %] > <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]" checked="checked"> [% PROCESS translate_log_interface log_interface=interf %]</label> > [% ELSE %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25845
:
106210
| 106421 |
107098