]> git.koha-community.org Git - koha.git/commit
Bug 30974: Set size for indexing jobs to 1
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 16 Jun 2022 08:22:02 +0000 (10:22 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 13 Jul 2022 19:59:20 +0000 (19:59 +0000)
commita4c66e5254acc388e51dfd4d4b7ad33ce2d5142a
tree4686b11dc677009524a7e3c797fc9ec2c7795c64
parentaa7c47cfed54dc4a971bb2eecc652b3e08d7cbbd
Bug 30974: Set size for indexing jobs to 1

job's size is the number of records to index, but when finished the progress is always set to 1.

Wich leads to: finished 1/42

Test plan:
Don't apply this patch
Use the batch item modification tool to update more than 1 item
Notice that the new indexing job has a size of the number of items you
modified
When finished, the job detail shows "Finished. 1/X"
Apply this patch, repeat
Notice that now the progress shows 0/1 before the job is done, then 1/1
when finished

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 85dc90c1514aaf9a7b57d5fed2efd79bc5c29321)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/BackgroundJob/UpdateElasticIndex.pm