[Koha-bugs] [Bug 25265] Elasticsearch - Batch editing items on a biblio can lead to incorrect index

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 2 19:38:42 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25265

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #109538|0                           |1
        is obsolete|                            |

--- Comment #15 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 109556
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109556&action=edit
Bug 25265: Prevent double reindex of the same item in batchmod

When batch editing, 2 reindex calls are sent to ES/Zebra.
We can easily avoid that reusing the skip_modzebra_update

Additionally we should only send one request for biblio, and we should
only do it if we succeed

As the hwole batch mod is in a transaction it is possible to fail in which case
Zebra queue is reset, but ES indexes have already been set

In addition to the skip param this patchset makes ModZebra take lists of
biblionumbers
or records so that multiple records can be passed in one call

Test plan:
1 - Have a bib with several items, none marked 'not for loan'
2 - Do a staff search that returns this biblio
3 - Items show as available
4 - Click on title to go to details page
5 - Edit->Item in a batch
6 - Set the not for loan status for all items
7 - Repeat your search
8 - Items show as not for loan

Signed-off-by: Bob Bennhoff <bbennhoff at clicweb.org>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list