Handle orphaned editions passed to MergeUI record enhancer#11703
Merged
cdrini merged 5 commits intointernetarchive:masterfrom Feb 3, 2026
Merged
Handle orphaned editions passed to MergeUI record enhancer#11703cdrini merged 5 commits intointernetarchive:masterfrom
cdrini merged 5 commits intointernetarchive:masterfrom
Conversation
cdrini
approved these changes
Feb 3, 2026
Collaborator
cdrini
left a comment
There was a problem hiding this comment.
Lgtm! One change to avoid relying on the differing author shape between works/editions ; if we want to handle them separately, we should specifically check the object type. But in these cases I think it's ok if they're seen the same.
cdrini
reviewed
Feb 3, 2026
cdrini
reviewed
Feb 3, 2026
Collaborator
|
Tested on testing and worked like a charm! This also partially addressed the issue with work authors being malformatted and missing |
lokesh
pushed a commit
to lokesh/openlibrary
that referenced
this pull request
Feb 4, 2026
…phans Handle orphaned editions passed to MergeUI record enhancer
bhardwajparth51
added a commit
to bhardwajparth51/openlibrary
that referenced
this pull request
Feb 17, 2026
…phans Handle orphaned editions passed to MergeUI record enhancer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11702 . Partially fixes #10966
Fixes the issue where MergeUI will crash if passed orphaned editions that have an authors field.
Technical
Limits author lookups to records with work-style authors fields.
Since edition authors aren't added to the primary work during merging, I'm not giving them the enhanced display that work authors get.
Testing
On testing you should be able to load https://openlibrary.org/works/merge?records=OL14857756W,OL24198259M and not crash MergeUI.
Stakeholders
@mheiman