Koha-clms/C4
Matt Blenkinsop 0fe026c6fa
Bug 32013: Autorenewal batch indexing
The automatic_renewals.pl cron script currently loops through items for automatic renewal and calls the indexer for each one individually. skip_record_index has now been added as a parameter to the AddRenewal function to skip the indexing process. The item numbers are now added to an array and then the indexer is called once from within automatic_renewals.pl and passed the array to queue one indexing job instead of multiple jobs.

Test plan:
1) AddRenewal uses Koha::Items->store() to trigger the indexing process. Run prove -vv t/db_dependent/Koha/SearchEngine/Indexer.t and check tests 5,6,29,30. These tests prove whether passing skip_record_index to store() triggers or skips the indexing process. All four tests should pass to show that skip_index_records can prevent the indexing being triggered.
2) Add multiple renewals that are able to be autorenewed and run the automatic_renewals.pl script. There should be multiple items queued in zebraqueue.
3) Apply patch and try again
4) There should now only be one job queued in zebraqueue

Mentored-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-12 09:26:56 -03:00
..
AuthoritiesMarc
…
Barcodes
…
ClassSortRoutine
…
ClassSplitRoutine
…
Creators Bug 32222: Fix capitalization in various "id is invalid" 2023-02-07 10:29:35 -03:00
External
…
Form
…
Heading Bug 33100: Remove all punctuation at end of record 2023-03-17 09:59:07 -03:00
ILSDI
…
Installer
…
Labels
…
Linker
…
Members
…
OAI
…
Output
…
Patroncards Bug 31259: Escape infinite loop when lime cannot wrap enough 2023-03-31 13:13:39 +02:00
Reports
…
SIP Bug 32684: (QA follow-up) Move too_many_lost to Patron 2023-03-14 08:49:29 -03:00
Search
…
Serials
…
Utils
…
Accounts.pm
…
Acquisition.pm Bug 25655: Store invoice price and currency even if no currency change 2023-03-06 13:57:53 -03:00
Auth.pm Bug 30624: Add loggedinlibrary permission and DB update 2023-03-13 15:22:59 -03:00
Auth_cas_servers.yaml.sample
…
Auth_with_cas.pm
…
Auth_with_ldap.pm
…
Auth_with_shibboleth.pm
…
AuthoritiesMarc.pm Bug 32279: Add GetAuthorizedHeading method export C4::AuthoritiesMarc 2023-03-31 18:43:40 +02:00
BackgroundJob.pm
…
Barcodes.pm
…
Biblio.pm Bug 33019: Make sure ES records are indexed the first time 2023-03-27 11:29:57 +02:00
Breeding.pm Bug 32279: Add GetAuthorizedHeading method export C4::AuthoritiesMarc 2023-03-31 18:43:40 +02:00
Budgets.pm
…
Calendar.pm
…
Charset.pm
…
Circulation.pm Bug 32013: Autorenewal batch indexing 2023-04-12 09:26:56 -03:00
ClassSortRoutine.pm
…
ClassSource.pm
…
ClassSplitRoutine.pm
…
Context.pm Bug 32687: Get server version in Context::get_versions 2023-02-24 17:52:28 -03:00
Contract.pm
…
CourseReserves.pm
…
Creators.pm
…
HTML5Media.pm
…
Heading.pm Bug 33159: Simplify ES handling and fix zebra handling 2023-03-31 11:56:53 +02:00
HoldsQueue.pm Bug 32247: Exit holds queue builder if there are no holds on the biblio 2022-12-15 09:49:53 -03:00
ImportBatch.pm Bug 32279: Add GetAuthorizedHeading method export C4::AuthoritiesMarc 2023-03-31 18:43:40 +02:00
ImportExportFramework.pm
…
InstallAuth.pm
…
Installer.pm Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
ItemCirculationAlertPreference.pm
…
Items.pm Bug 32456: Preserve date accessioned if a date is not explicitly passed 2022-12-27 10:47:05 -03:00
Koha.pm Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
Labels.pm
…
Languages.pm Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
Letters.pm Bug 31858: add TT syntax for ACQORDER notices 2023-03-10 11:15:15 -03:00
Linker.pm
…
Log.pm Bug 32057: (QA follow-up) Remove pretty flag 2023-03-14 08:49:34 -03:00
MarcModificationTemplates.pm
…
Matcher.pm Bug 33183: Error inserting matchpoint_components when creating record matching rules with MariaDB 10.6 2023-03-16 16:23:01 -03:00
Members.pm
…
Message.pm Bug 18398: (follow-up) Update POD & Unit tests 2023-03-31 13:13:35 +02:00
Output.pm
…
Overdues.pm Bug 27259: Add HomeOrHoldingBranch checks where it was missing from 2022-11-04 19:04:18 -03:00
Patroncards.pm
…
Record.pm
…
Reports.pm
…
Reserves.pm Bug 32455: Use from_email_address for 'from' field for hold notices 2023-02-07 10:26:02 -03:00
Ris.pm Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
RotatingCollections.pm
…
SMS.pm
…
Scheduler.pm
…
Scrubber.pm
…
Search.pm Bug 13976: Sort popularity numerically in Zebra 2023-03-31 12:40:00 +02:00
Serials.pm Bug 33040: Add "Date published (text)" to serials tab on record view (detail.pl) 2023-04-06 09:47:26 -03:00
Service.pm
…
ShelfBrowser.pm
…
SocialData.pm
…
Stats.pm
…
Suggestions.pm Bug 32027: Fix 'librarian interface' to use 'staff interface' in Pages/HTML customizations/News 2023-02-07 10:31:29 -03:00
TTParser.pm
…
Tags.pm Bug 31517: (QA follow-up) Fix indentation 2022-11-04 19:30:56 -03:00
Templates.pm
…
TmplToken.pm
…
TmplTokenType.pm
…
UsageStats.pm
…
XISBN.pm
…
XSLT.pm Bug 31123: Display content warnings on the intranet 2023-04-06 10:44:58 -03:00