https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37564
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #6 from David Nind <[email protected]> --- I had a go at testing the patch for main (thanks Magnus for the test plan!). However, it still seems to be updating the holds queue. 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. Here is the database entries after the patch is applied (probably hard to read): | id | status | progress | size | borrowernumber | type | queue | data | context | enqueued_on | started_on | ended_on | +----+----------+----------+------+----------------+--------------------------------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+ | 3 | finished | 1 | 1 | NULL | update_holds_queue_for_biblios | default | {"messages":[{"type":"success","code":"holds_queue_updated","biblio_id":439}],"report":{"total_biblios":1,"total_success":1},"biblio_ids":[439]} | {"cardnumber":null,"number":null,"interface":"commandline","firstname":"CLI","desk_name":null,"desk_id":null,"surname":"CLI","register_name":null,"branch":null,"register_id":null,"branchname":null,"shibboleth":null,"emailaddress":null,"id":null,"flags":null} | 2025-01-24 18:51:49 | 2025-01-24 18:51:50 | 2025-01-24 18:51:50 | +----+----------+----------+------+----------------+--------------------------------+---------+--------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+ Other notes: 1. I reindexed after deleting the record, probably diidn't need to: koha-rebuild-zebra -d -f -v kohadev 2. I used a different record after applying the patch, as I had an error when trying to delete the imported record. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
