]> git.koha-community.org Git - koha.git/commit
Bug 33576: Index records after import transaction is committed
authorNick Clemens <nick@bywatersolutions.com>
Thu, 20 Apr 2023 16:02:09 +0000 (16:02 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 15 May 2023 12:05:28 +0000 (12:05 +0000)
commit28421683999cea16c8df823ad96048ffa48ebbef
tree92faf7d901fe9fad3f8695957e31eb6642fdbb18
parent15e46b6842e3526d622c7785c8e2b7746793954d
Bug 33576: Index records after import transaction is committed

This patch simply moves our indexing call after the transaction is committed so
that the job will exist in the DB when called.

To test:
 1 - Have Koha using Elasticsearch
 2 - Stage and import a file of records
 3 - View the job in Admin->Manage jobs
 4 - Note it is not finished
 5 - Check log: /var/log/koha/kohadev/es-indexer-output.log
 6 - Note: [WARN] No job found for id=###
 7 - Apply patch
 8 - Stage and import
 9 - Note no error in log
10 - Note successful completion of indexing job

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9af2f3d12cef6a679763117a0c086468868c79f5)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/ImportBatch.pm