Summary: | After editing an authority record with CatalogModuleRelink on, race condition between relinking and saving the edited record | ||
---|---|---|---|
Product: | Koha | Reporter: | Phil Ringnalda <phil> |
Component: | MARC Authority data support | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED WORKSFORME | QA Contact: | Testopia <testopia> |
Severity: | minor | ||
Priority: | P5 - low | ||
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Phil Ringnalda
2020-04-29 23:07:01 UTC
Actually, it's not "before" but just a race condition between the saving and the relinking. With more than just two bibs involved, it's anyone's guess how many will wind up on the first one and how many on the second, probably partly depending on how complex and thus slow to relink the bibs are. I'd expect very different results with ten bibs where the only authority-controlled field is a single 100 versus ten DVD bibs with their typical twenty or thirty authority-controlled fields. The worst part of this bug is actually the Delete action: we think that "Koha doesn't allow you to delete an authority from search results unless there are no linked bibs" but what's actually the case is that "Koha doesn't allow you to delete an authority from search results unless there are no linked bibs *at the time you loaded the search results*". About once a month, I do something that will trigger this and despite knowing about this bug, I wind up deleting the authority which had zero bibs linked at the time, only to see when the search reloads after I delete that I was in the middle of a race of relinking, and I deleted the authority which actually had two bibs attached by the time I deleted it, which results in deleting the linked fields from the bib records as well. Then I have to figure out which bibs I just ruined (easy enough with an author, mostly, but guessing which two bibs you just deleted a subject heading from can be a bit challenging). |