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

Disable ground-truth availability checks #6078

Merged

Conversation

jimchamp
Copy link
Collaborator

Disables ground-truth availability calls for book page main borrow buttons. Adds additional profiling to LoanStatus.html.

Technical

Testing

Screenshot

Stakeholders

@mekarpeles

@jimchamp jimchamp added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Jan 27, 2022
Copy link
Member

@mekarpeles mekarpeles left a comment

Choose a reason for hiding this comment

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

lgtm

@jimchamp jimchamp marked this pull request as draft January 28, 2022 17:54
@jimchamp
Copy link
Collaborator Author

I would like to get some baseline metrics for borrow failures before this gets merged. Converting to draft until we discuss the plan.

@jimchamp jimchamp mentioned this pull request Feb 2, 2022
@mekarpeles mekarpeles self-assigned this Feb 4, 2022
@jimchamp jimchamp marked this pull request as ready for review February 9, 2022 21:34
@mekarpeles
Copy link
Member

Note: on http://ol-dev1.us.archive.org:1337/ (not testing -- I think there may have been a conflict w/ branches on testing)

@mekarpeles
Copy link
Member

This successfully and appropriately hits the Ground-Truth API. Takes ~4.5s and .7s is ground truth.
http://ol-dev1.us.archive.org:1337/works/OL51940W/Meno?debug=true

This successfully uses Bulk Availability API and takes 1.6s and .25 is databar.
http://ol-dev1.us.archive.org:1337/books/OL23319049M/Meno?debug=true

Another example here ~1.5s
http://ol-dev1.us.archive.org:1337/books/OL5944019M/New_challenges_in_the_social_studies?debug=true

@mekarpeles mekarpeles added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Feb 9, 2022
@mekarpeles mekarpeles merged commit 98011d6 into internetarchive:master Feb 12, 2022
@jimchamp jimchamp deleted the perf/curtail-gt-availability branch July 15, 2022 23:14
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants