]> git.koha-community.org Git - koha.git/commit
Bug 33971: Remove x-koha-query header support
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Jun 2023 14:27:07 +0000 (11:27 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 13:35:06 +0000 (10:35 -0300)
commit3fc1f27524a4a0f0dfc6385b289c252502e45fd6
tree089d37dac8ad83e14424ee427c52a127d4c6f3b2
parentf32fe0d39c88a55d5c6d95a2f6850714adb19ffa
Bug 33971: Remove x-koha-query header support

This patch removes support for the `x-koha-query` header entirely from
the codebase. For the purpose:

- $c->objects->search is adjusted
- Relevant tests are cleared/adapted
- The OpenAPI spec gets the header removed

To test:
1. Apply this patch and run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t \
           t/Koha/REST/Plugin/Query.t \
           t/db_dependent/api/v1/*.t
=> SUCCESS: Tests pass!
2. Sign off :-D

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
42 files changed:
Koha/REST/Plugin/Objects.pm
Koha/REST/Plugin/Query.pm
api/v1/swagger/paths/acquisitions_baskets.yaml
api/v1/swagger/paths/acquisitions_funds.yaml
api/v1/swagger/paths/acquisitions_orders.yaml
api/v1/swagger/paths/acquisitions_vendors.yaml
api/v1/swagger/paths/advancededitormacros.yaml
api/v1/swagger/paths/auth.yaml
api/v1/swagger/paths/authorised_value_categories.yaml
api/v1/swagger/paths/authorised_values.yaml
api/v1/swagger/paths/authorities.yaml
api/v1/swagger/paths/biblios.yaml
api/v1/swagger/paths/biblios_item_groups.yaml
api/v1/swagger/paths/cash_registers.yaml
api/v1/swagger/paths/checkouts.yaml
api/v1/swagger/paths/cities.yaml
api/v1/swagger/paths/config_smtp_servers.yaml
api/v1/swagger/paths/erm_agreements.yaml
api/v1/swagger/paths/erm_eholdings_packages.yaml
api/v1/swagger/paths/erm_eholdings_packages_resources.yaml
api/v1/swagger/paths/erm_eholdings_resources.yaml
api/v1/swagger/paths/erm_eholdings_titles.yaml
api/v1/swagger/paths/erm_eholdings_titles_resources.yaml
api/v1/swagger/paths/erm_licenses.yaml
api/v1/swagger/paths/erm_users.yaml
api/v1/swagger/paths/holds.yaml
api/v1/swagger/paths/ill_requests.yaml
api/v1/swagger/paths/import_batch_profiles.yaml
api/v1/swagger/paths/items.yaml
api/v1/swagger/paths/jobs.yaml
api/v1/swagger/paths/libraries.yaml
api/v1/swagger/paths/patrons.yaml
api/v1/swagger/paths/patrons_account.yaml
api/v1/swagger/paths/patrons_extended_attributes.yaml
api/v1/swagger/paths/patrons_holds.yaml
api/v1/swagger/paths/quotes.yaml
api/v1/swagger/paths/search_filters.yaml
api/v1/swagger/paths/suggestions.yaml
api/v1/swagger/paths/tickets.yaml
api/v1/swagger/paths/transfer_limits.yaml
api/v1/swagger/swagger.yaml
t/db_dependent/Koha/REST/Plugin/Objects.t