Bug 30822: Make BatchCommitRecords update the index in one request
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 20 May 2022 15:59:23 +0000 (16:59 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 22 Jun 2022 12:43:47 +0000 (09:43 -0300)
commit809b6e701691118bbd1589428abc6fd1bada4b8c
tree3b07c8947360113969667bcb879b9b38b5f46193
parent02b029233326742ee11f897ee12a2a431f7ed946
Bug 30822: Make BatchCommitRecords update the index in one request

When committing staged marc imports to the catalogue we will often be
importing a batch of records. We don't want to send one index request
per biblio affected, we want to index them all after the records have
been modified otherwise we will end up with multiple tasks per record
(when items are also affected).

Test plan:
1) Use the stage marc record tool to stage and commit a set of records and
confirm the behaviour remains correct.
2) If using Elastic, check that only one indexing job is queued to take
place resulting from the committed import.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Biblio.pm
C4/ImportBatch.pm