If you import staged records with the sole purpose of updating the items (Action if matching record found: = Ignore incoming record ; Action if no match is found:Ignore incoming record ; Check for embedded item record data = Yes ; How to process items = Replace items if ...), at the end of the operation Koha display " Failed" job status. If the items were successfully updted, the status should be Success
Created attachment 188230 [details] [review] Bug 40846: Improve handling of ignored records Currently, a jobis marked failed if there are no records added or updated. We should take ignored records into account. Additionally, I mark the job failed when the number of records processed doesn't equal the number of records in the bacth To test: 1 - Export some records from your Koha, include some with items 2 - Stage and import those records into Koha, matching on biblionumber, ignoring matcheds, updating items 3 - View the import job, it is marked failed 4 - View the batch, all records imported 5 - Apply patch, restart all 6 - Stage/import as before 7 - Job is now marked finished 8 - Records imported as before
Created attachment 190479 [details] [review] Bug 40846: Improve handling of ignored records Currently, a jobis marked failed if there are no records added or updated. We should take ignored records into account. Additionally, I mark the job failed when the number of records processed doesn't equal the number of records in the bacth To test: 1 - Export some records from your Koha, include some with items 2 - Stage and import those records into Koha, matching on biblionumber, ignoring matcheds, updating items 3 - View the import job, it is marked failed 4 - View the batch, all records imported 5 - Apply patch, restart all 6 - Stage/import as before 7 - Job is now marked finished 8 - Records imported as before Signed-off-by: David Nind <david@davidnind.com>
Created attachment 191671 [details] [review] Bug 40846: Improve handling of ignored records Currently, a job is marked failed if there are no records added or updated. We should take ignored records into account. Additionally, I mark the job failed when the number of records processed doesn't equal the number of records in the batch. To test: 1) Export some records from your Koha, include some with items 2) Stage and import those records into Koha, matching on biblionumber, ignoring matcheds, updating items 3) View the import job, it is marked failed 4) View the batch, all records imported 5) Apply patch, restart all 6) Stage/import as before 7) Job is now marked finished 8) Records imported as before Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Nice work everyone! Pushed to main for 26.05
please add release notes