]> git.koha-community.org Git - koha.git/commit
Bug 36495: Use render_resource_not_found() helper everywhere
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 2 Apr 2024 18:22:52 +0000 (18:22 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 16:06:13 +0000 (18:06 +0200)
commitcd3c5fcce9c557f0aa4d017a2f2273a4a68539a0
treec56e3eea2077a551d45e1c051d0b013418c9b716
parentfc7b6d9eb56436417280809fa06467c367615291
Bug 36495: Use render_resource_not_found() helper everywhere

This patch makes the existing controllers use the new helpers for (most) 404 situations.
The remaining ones are subject to discussion.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
57 files changed:
Koha/REST/V1/Acquisitions/Orders.pm
Koha/REST/V1/Acquisitions/Vendor/Issues.pm
Koha/REST/V1/Acquisitions/Vendors.pm
Koha/REST/V1/AdvancedEditorMacro.pm
Koha/REST/V1/ArticleRequests.pm
Koha/REST/V1/Auth/Identity/Provider/Domains.pm
Koha/REST/V1/Auth/Identity/Providers.pm
Koha/REST/V1/AuthorisedValues.pm
Koha/REST/V1/Authorities.pm
Koha/REST/V1/BackgroundJobs.pm
Koha/REST/V1/Biblios.pm
Koha/REST/V1/Biblios/ItemGroups.pm
Koha/REST/V1/Biblios/ItemGroups/Items.pm
Koha/REST/V1/Bookings.pm
Koha/REST/V1/CashRegisters/Cashups.pm
Koha/REST/V1/Checkouts.pm
Koha/REST/V1/Cities.pm
Koha/REST/V1/Clubs/Holds.pm
Koha/REST/V1/Config/SMTP/Servers.pm
Koha/REST/V1/ERM/Agreements.pm
Koha/REST/V1/ERM/Documents.pm
Koha/REST/V1/ERM/EHoldings/Packages/Local.pm
Koha/REST/V1/ERM/EHoldings/Resources/Local.pm
Koha/REST/V1/ERM/EHoldings/Titles/Local.pm
Koha/REST/V1/ERM/EUsage/CounterFiles.pm
Koha/REST/V1/ERM/EUsage/DefaultUsageReports.pm
Koha/REST/V1/ERM/EUsage/UsageDataProviders.pm
Koha/REST/V1/ERM/Licenses.pm
Koha/REST/V1/Holds.pm
Koha/REST/V1/ILL/Batch/Statuses.pm
Koha/REST/V1/ILL/Batches.pm
Koha/REST/V1/ImportBatchProfiles.pm
Koha/REST/V1/ImportRecordMatches.pm
Koha/REST/V1/Items.pm
Koha/REST/V1/Libraries.pm
Koha/REST/V1/Patrons.pm
Koha/REST/V1/Patrons/Account.pm
Koha/REST/V1/Patrons/Attributes.pm
Koha/REST/V1/Patrons/Holds.pm
Koha/REST/V1/Patrons/Password.pm
Koha/REST/V1/Patrons/Password/Expiration.pm
Koha/REST/V1/Preservation/Processings.pm
Koha/REST/V1/Preservation/Trains.pm
Koha/REST/V1/Preservation/WaitingList.pm
Koha/REST/V1/Quotes.pm
Koha/REST/V1/ReturnClaims.pm
Koha/REST/V1/SearchFilter.pm
Koha/REST/V1/Suggestions.pm
Koha/REST/V1/Tickets.pm
t/db_dependent/api/v1/article_requests.t
t/db_dependent/api/v1/authorities.t
t/db_dependent/api/v1/biblios.t
t/db_dependent/api/v1/clubs_holds.t
t/db_dependent/api/v1/erm_eholdings_titles.t
t/db_dependent/api/v1/jobs.t
t/db_dependent/api/v1/patrons.t
t/db_dependent/api/v1/suggestions.t