]> git.koha-community.org Git - koha.git/commit
Bug 30663: Add x-koha-override options to /suggestions
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 3 May 2022 14:20:46 +0000 (11:20 -0300)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 13 May 2022 19:09:28 +0000 (15:09 -0400)
commit25317416e62a267a4f4b06cf35f37ad38e04b40a
treeb61c35ed8fa047c1dd80f15b08e5a9651b73119f
parentb4685ca2054d7b5484f09c4c879fb36919443a13
Bug 30663: Add x-koha-override options to /suggestions

This patch adds the x-koha-override header parameter to the route that
is used to create suggestions, POST /suggestions.

The idea is that adding suggestions will be rejected under certain
conditions unless x-koha-override is passed with appropriate values. The
added overrides are:

* any
* max_total
* max_pending

Tests are added for the expected behavior.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
api/v1/swagger/paths/suggestions.yaml
t/db_dependent/api/v1/suggestions.t