Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support comma separated author merge url #10114

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

RayBB
Copy link
Collaborator

@RayBB RayBB commented Dec 4, 2024

  • support comma separated author merge url
  • add support in community edit queue
  • add support in selection toolbar
  • add support for work search faceets
  • add support for author search page

Closes #10113

The purpose of this is to make it easier to add IDs to the author merge page (per the issue)

Technical

Testing

http://localhost:8080/authors/merge?records=OL18319A,OL2180017A,OL3116644A,OL22122A works
So does
http://localhost:8080/authors/merge?key=OL20585A&key=OL18319A (with a redirect)

Screenshot

Stakeholders

@RayBB RayBB changed the title feature/improve author merge url improve author merge url Dec 4, 2024
@RayBB RayBB requested a review from cdrini December 4, 2024 18:45
@RayBB RayBB changed the title improve author merge url support comma separated author merge url Dec 4, 2024
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice code looks great! One small change. Tossing onto testing for a quick run

openlibrary/plugins/upstream/merge_authors.py Outdated Show resolved Hide resolved
@RayBB
Copy link
Collaborator Author

RayBB commented Dec 4, 2024

@cdrini does that remove a trailing comma? If there's a trailing comma it'll give an error because the ID is a " " and invalid ?

@cdrini
Copy link
Collaborator

cdrini commented Dec 5, 2024

^ Yep exactly!

@cdrini cdrini merged commit 89d69ed into master Dec 5, 2024
7 checks passed
@cdrini cdrini deleted the feature/improve-author-merge-url branch December 5, 2024 13:46
@cdrini
Copy link
Collaborator

cdrini commented Dec 5, 2024

Tested merging from search results, and successfully completed a full merge 👍

@cdrini cdrini self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update work merge url to match author merge url
2 participants