Main Koha release repository https://koha-community.org
Find a file
Tomas Cohen Arazi 531d03e811
Bug 31795: (QA follow-up) Use x-koha-override header
Despite its title, this patch does a couple more things.

1. The tests are rewritten to cover more things, and also to avoid
   deleting all authorities inside the transaction. It is really not
   required.
2. It makes the endpoint rely on the already generically implemented
   x-koha-override header, which is intended for the same use case as
   x-confirm-not-duplicate is for.
3. It changes the return codes to match the coding guidelines [1]
4. Only checks for duplicates if no override passed.

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

[1] https://wiki.koha-community.org/wiki/Coding_Guidelines_-_API#SWAGGER3.2.1_POST

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-05 10:18:43 -03:00
acqui Bug 32484: Enable plugins when UseACQFrameworkForBiblioRecords is set 2023-04-21 10:36:28 -03:00
admin Bug 22440: New ILL requests table 2023-05-05 09:13:41 -03:00
api Bug 31795: (QA follow-up) Use x-koha-override header 2023-05-05 10:18:43 -03:00
authorities Bug 32484: (QA follow-up) Few typos 2023-04-21 10:36:30 -03:00
basket
bin
C4 Bug 28267: Simplify things 2023-05-05 10:18:36 -03:00
catalogue Bug 18829: (QA follow-up) Replace forbidden indirect syntax 2023-04-17 09:39:42 -03:00
cataloguing Bug 32874: Fix cataloguing/value_builder/unimarc_field_700-4.pl 2023-05-05 09:13:37 -03:00
circ Bug 33345: On-site checkout checkbox does not work since issue date using flatpickr 2023-04-14 11:35:22 -03:00
clubs
course_reserves
debian Bug 33629: allow pbuilder to use network via build-git-snapshot 2023-05-05 09:13:15 -03:00
docs
erm
errors
etc Bug 33360: Update koha-conf.xml 2023-04-14 11:35:33 -03:00
ill
installer Bug 33419: Make home library and current library mandatory by default 2023-05-05 10:18:40 -03:00
Koha Bug 31795: (QA follow-up) Use x-koha-override header 2023-05-05 10:18:43 -03:00
koha-tmpl Bug 32412: Do not reload COCE image for biblio 2023-05-05 10:18:42 -03:00
labels
lib/CGI/Session/Serialize
members
misc Bug 33649: Fix use of cronlogaction 2023-05-05 10:18:37 -03:00
offline_circ
opac Bug 12029: Remove 'params' from filter_by_unread 2023-04-20 15:48:47 -03:00
patron_lists
patroncards
plugins
pos
recalls
reports Bug 23824: Add a "Save and run" button to reports 2023-04-17 09:39:45 -03:00
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc
t Bug 31795: (QA follow-up) Use x-koha-override header 2023-05-05 10:18:43 -03:00
tags
tools
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.proverc.dist
.stylelintrc.json
about.pl Bug 28267: Simplify things 2023-05-05 10:18:36 -03:00
app.psgi
build-resources.PL
changelanguage.pl
cpanfile
cypress.json
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL Bug 26617: Update INSTALL file to include koha-testing-docker and Gitlab links 2020-10-15 12:56:30 +02:00
Koha.pm Bug 33262: DBRev 22.12.00.027 2023-05-05 10:18:35 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
tsconfig.json
webpack.config.js
yarn.lock

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

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

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