Bug 35164

Summary: link_bibs_to_authorities (authority linker) creates empty record index jobs
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: MARC Authority data supportAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2023-10-26 13:20:39 UTC
In the script:
114     if ( not $test_only ) {
115         $schema->txn_commit;
116         $indexer->index_records( \@updated_biblios, "specialUpdate", "biblioserver" );
117     }


We don't check if @updated_biblios has any members

In elastic indexing, we also never check this - so background jobs with no record numbers get enqueued