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

phase 2 editions table perf #6247

Merged
merged 4 commits into from
Mar 4, 2022
Merged

phase 2 editions table perf #6247

merged 4 commits into from
Mar 4, 2022

Conversation

mekarpeles
Copy link
Member

Addresses performance issues on books pages w/ lots of editions + ebooks

Technical

By default, fetch up to 10 ebooks.
Otherwise, fetch 3 featured editions with covers (if possible)

Testing

Test https://testing.openlibrary.org/works/OL66554W/Pride_and_Prejudice

Stakeholders

@cdrini @jimchamp @seabelis @mheiman

@jimchamp
Copy link
Collaborator

jimchamp commented Mar 4, 2022

Code lgtm! A unit test involving get_sorted_editions is now failing, and needs to be corrected before this is merged.

This also restores OpenStax trusted book provider buttons on testing (not sure if there's an issue for this).

TBP buttons present:
https://testing.openlibrary.org/works/OL17319618W/Introduction_to_Sociology

No TBP buttons:
https://openlibrary.org/works/OL17319618W/Introduction_to_Sociology

@jimchamp jimchamp merged commit 9578801 into master Mar 4, 2022
@jimchamp jimchamp deleted the perf-ebooks-limit-10 branch March 4, 2022 22:33
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