Koha-clms/Koha/BackgroundJob
Pedro Amorim d55ea648ac
Bug 34587: Improve SUSHI COUNTER error handling
This is doing a few things, checking for sushi errors:
1) Abort background job and provide error message if SUSHI returned
   {Severity} in response, this means SUSHI error, docs here:
https://app.swaggerhub.com/apis/COUNTER/counter-sushi_5_0_api/5.0.2#/SUSHI_error_model

2) Abort background job and provide error message if SUSHI provided
   proper response, but contains Exceptions in Report_Header

3) Abort background job and provide error message if SUSHI returned 0
   report items (e.g. everything is fine but there are no items for the
   harvest period provided

4) Abort background job and provide error message if COUNTER file
   created is larger than allowed by the database.

5) Provide error message if manual upload file size exceeds the max
   allowed by the database

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-31 16:46:25 -03:00
..
BatchCancelHold.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchDeleteAuthority.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchDeleteBiblio.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchDeleteItem.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchUpdateAuthority.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchUpdateBiblio.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchUpdateBiblioHoldsQueue.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
BatchUpdateItem.pm Bug 30943: Simplify background jobs code using helpers 2023-03-13 15:52:19 -03:00
CreateEHoldingsFromBiblios.pm Bug 34789: Update usage throughout Koha modules and Vue components 2023-09-18 12:06:18 -03:00
ErmSushiHarvester.pm Bug 34587: Improve SUSHI COUNTER error handling 2023-10-31 16:46:25 -03:00
MARCImportCommitBatch.pm Bug 15869: Change framework on overlay 2023-02-07 10:32:22 -03:00
MARCImportRevertBatch.pm Bug 32394: Restore long tasks queue 2022-12-14 14:32:27 -03:00
StageMARCForImport.pm Bug 33755: Set profile_id and add missing import 2023-08-15 12:16:59 +03:00
UpdateElasticIndex.pm Bug 33576: (QA follow-up) Polish comment, typo 2023-05-09 10:58:06 -03:00