Bugzilla – Attachment 177199 Details for
Bug 37564
bulkmarcimport should not generate real time holds queue updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37564: (follow-up) Skip holds queue for adding biblios
Bug-37564-follow-up-Skip-holds-queue-for-adding-bi.patch (text/plain), 1.96 KB, created by
Nick Clemens (kidclamp)
on 2025-01-27 19:59:41 UTC
(
hide
)
Description:
Bug 37564: (follow-up) Skip holds queue for adding biblios
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-01-27 19:59:41 UTC
Size:
1.96 KB
patch
obsolete
>From c07015c9586b3e3d2822b15249c56d6177e9ea7a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 27 Jan 2025 19:57:37 +0000 >Subject: [PATCH] Bug 37564: (follow-up) Skip holds queue for adding biblios > >Martin's patch added skip_holds_queue for ModBiblio, this patch adds it for AddBiblio as well > >Testing notes (using KTD): >1. Enable the real times hold queue: RealTimeHoldsQueue = Enable >2. Delete any background jobs: > DELETE FROM background_jobs; >3. Check the number of holds queue jobs in the database: > SELECT COUNT(*) FROM background_jobs WHERE type = update_holds_queue_for_biblios'; >4. Export a record with items as XML from Koha. >5. Delete the exported record from Koha >6. Import the record, using bulkmarcimport.pl: > misc/migration_tools/bulkmarcimport.pl -b -v -m=MARCXML --file my_record.marcxml >7. Check the jobs in the database, there should be one per item imported. >8. Delete the imported record >9. Delete all background jobs (see step 2). >10. Apply the patch >11. Import the record again (see step 6) >12. Check the number of holds queue jobs in the database again - should be 0. >13. Import biblio and use matchign option to overlay previosu import >14. Check the number of holds queue jobs in the database again - should be 0. >--- > misc/migration_tools/bulkmarcimport.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl >index 08d4d3e924b..44ace2fbc2d 100755 >--- a/misc/migration_tools/bulkmarcimport.pl >+++ b/misc/migration_tools/bulkmarcimport.pl >@@ -140,6 +140,7 @@ my $mod_biblio_options = { > my $add_biblio_options = { > disable_autolink => $using_elastic_search, > skip_record_index => $using_elastic_search || $skip_indexing >+ skip_holds_queue => 1, > }; > my $mod_authority_options = { skip_record_index => $using_elastic_search || $skip_indexing }; > my $add_authority_options = { skip_record_index => $using_elastic_search || $skip_indexing }; >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37564
:
176186
|
176188
| 177199 |
177210