Main Koha release repository https://koha-community.org
Find a file
Tomas Cohen Arazi e4cae99f7e Bug 26143: Make the API handle per_page=-1
This patch introduces handling for per_page=-1 and actually adds a
missing feature to the API: being able to request all resources on a
route.

To test this:
1. Visit the libraries admin page
2. On the table, choose to display 'All' rows
=> FAIL: it doesn't refresh, the browser console displays a 500 error
code and so the logs
3. Apply the tests patches
4. Run:
   $ kshell
  k$ prove t/Koha/REST/Plugin/Pagination.t \
           t/db_dependent/Koha/REST/Plugin/Objects.t
=> FAIL: Tests fail loudly
5. Apply this patch
6. Restart plack
7. Repeat 2
=> SUCCESS: choosing to display all, works
8. Repeat 4
=> SUCCESS: Tests pass now!
9. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-05 17:36:28 +02:00
acqui Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
admin Bug 25873: Ignore malformed data for Elasticsearch integer fields 2020-07-31 15:07:42 +02:00
api/v1 Bug 23820: Add checkout to default to patron's home branch on club hold 2020-07-20 17:45:30 +02:00
authorities
basket Bug 17842: Simplify the code 2020-06-12 10:32:35 +02:00
C4 Bug 26133: Remove GetMarcHosts 2020-08-05 17:36:28 +02:00
catalogue Bug 26133: Remove GetMarc* calls in detail.pl 2020-08-05 17:36:28 +02:00
cataloguing Bug 24279: Disable editing lost status in items editor if item is a return claim 2020-07-27 17:05:06 +02:00
circ Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
clubs Bug 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00:00
course_reserves
debian Bug 25920: Add liblocale-codes-perl package to fix ubuntu-stable (focal) 2020-07-30 17:44:27 +02:00
docs Bug 21395: (QA follow-up) Remove some introduced issues 2020-06-29 12:37:02 +02:00
errors
etc Bug 24151: (follow-up) Rename the config key with 'bcrypt_settings' 2020-07-23 12:15:38 +02:00
ill
installer Bug 26070: DBRev 20.06.00.020 2020-07-30 17:44:27 +02:00
Koha Bug 26143: Make the API handle per_page=-1 2020-08-05 17:36:28 +02:00
koha-tmpl Bug 24610: Compiled CSS 2020-08-03 11:57:55 +02:00
labels
members Bug 22844: Make the attribute mandatory when editing a patron 2020-07-20 16:08:22 +02:00
misc Bug 23696: take deleted biblios into account when building oai sets 2020-07-24 14:09:30 +02:00
offline_circ
opac Bug 26133: Remove GetMarc* calls in detail.pl 2020-08-05 17:36:28 +02:00
patron_lists
patroncards Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
plugins Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
pos
reports Bug 21395: (QA follow-up) Remove some introduced issues 2020-06-29 12:37:02 +02:00
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
t Bug 26143: Regression tests 2020-08-05 17:36:28 +02:00
tags Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
tmp/modified_authorities
tools Bug 5087: (QA follow-up) Rename the attribute to fit later API usage 2020-07-23 10:52:10 +02:00
virtualshelves
xt Bug 22844: Fix yaml_valid.t - don't pick .json files 2020-07-21 09:47:11 +02:00
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
.scss-lint.yml
about.pl Bug 24151: Rename the config key with 'bcrypt_settings' 2020-07-20 15:17:42 +02:00
changelanguage.pl
cpanfile Bug 25723: Drop DateTime::Set from cpanfile 2020-07-20 17:45:31 +02:00
fix-perl-path.PL Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
gulpfile.js
help.pl Bug 19817: Use the language from the interface if valid 2018-09-06 17:32:28 +00:00
INSTALL
Koha.pm Bug 26070: DBRev 20.06.00.020 2020-07-30 17:44:27 +02:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL Bug 25792: Rename 'ttf-dejavu' package to 'fonts-dejavu' for Debian 11 2020-07-21 14:34:25 +02:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL Bug 25792: Rename 'ttf-dejavu' package to 'fonts-dejavu' for Debian 11 2020-07-21 14:34:25 +02:00
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo