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

Prevent loan/waiting list status calls with old-style username format #6305

Conversation

jimchamp
Copy link
Collaborator

Closes #6304

Prevents book page loan status and waiting list queries using obsolete usernames (having the format: ol:${username})

Technical

Calls made to userkey2userid will return obsolete ol:foo user identifiers. Seeing this function in our code should indicate that said code may need to be updated.

Testing

  1. While tailing the web logs, visit a book page.
  2. Ensure that only one call each is made for loan status and waiting list status.

Screenshot

Stakeholders

@mekarpeles

@jimchamp jimchamp requested a review from mekarpeles March 17, 2022 00:46
@mekarpeles mekarpeles merged commit d3abda1 into internetarchive:master Mar 17, 2022
@mekarpeles
Copy link
Member

hooray!

@jimchamp jimchamp deleted the 6304/bug/remove-old-loan-status-calls branch August 7, 2024 19:31
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.

Remove unnecessary patron loan and waiting list queries
2 participants