Bugzilla – Attachment 170497 Details for
Bug 37687
API query operators list doesn't match documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37687: Restore -not_in operator
Bug-37687-Restore--notin-operator.patch (text/plain), 1.22 KB, created by
Matt Blenkinsop
on 2024-08-20 13:51:01 UTC
(
hide
)
Description:
Bug 37687: Restore -not_in operator
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-08-20 13:51:01 UTC
Size:
1.22 KB
patch
obsolete
>From 3777a8ad2ed786b84708fdd06fc3cb1a86d56a0a Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Tue, 20 Aug 2024 13:49:15 +0000 >Subject: [PATCH] Bug 37687: Restore -not_in operator > >Test plan: >1) Compare the API documentation on query parameters and note that'-not_in' is listed as a valid operator. >2) Look at the patch diff - you will see that previously '-not_in' was not included in the list and now is >--- > Koha/REST/Plugin/Query.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/Plugin/Query.pm b/Koha/REST/Plugin/Query.pm >index 01fa0e8cd4b..c8ba09e8d49 100644 >--- a/Koha/REST/Plugin/Query.pm >+++ b/Koha/REST/Plugin/Query.pm >@@ -512,7 +512,7 @@ sub _validate_operator { > my ($operator) = @_; > my %allowed_operators = > map { $_ => 1 } >- qw(= != < > <= >= -in -ident -bool -not_bool -or like -like -not_like -between -not_between -not -and -regexp); >+ qw(= != < > <= >= -in -ident -bool -not_bool -or like -like -not_like -between -not_between -not -and -regexp -not_in); > Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator ) > unless exists $allowed_operators{$operator}; > return; >-- >2.39.3 (Apple Git-146)
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 37687
:
170497
|
170537
|
170566