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

Preserve mrid when deprecated keys are passed in merge_authors #10237

Conversation

mheiman
Copy link
Collaborator

@mheiman mheiman commented Dec 30, 2024

Addresses #10131

Part of the problem with completed author merges being stuck in the merge queue is that there's no way to remove these entries once they appear. I noticed that the problem entries were all using the deprecated /authors/merge?key=A001&key=A002&mrid=1 format.

The code in merge_authors that redirects to the preferred /authors/merge?records=A001,A002 doesn't preserve the mrid parameter, which takes the merge out of the merge queue context so that the Reject Merge button isn't available to close the request.

Technical

This change preserves the mrid parameter in the redirect and maintains the merge queue context.

Testing

With this change in place, review one of the stuck author merges in the queue. The Reject Merge button should now appear and allow you to close the request.

Stakeholders

@jimchamp

Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Great catch! Works as expected.

@jimchamp jimchamp merged commit cb4a873 into internetarchive:master Jan 1, 2025
4 checks passed
@mheiman mheiman deleted the 10131/bugfix/author-merge-mrid-handling branch January 1, 2025 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants