Content-Length: 286429 | pFad | https://github.com/internetarchive/openlibrary/pull/9539

8C Chunk keys in lazy-thing-preview; fix long lists editing by cdrini · Pull Request #9539 · internetarchive/openlibrary · GitHub
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

Chunk keys in lazy-thing-preview; fix long lists editing #9539

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Jul 9, 2024

Closes #9535 . Fixes lists with many items timing out when lazy-rendering the book titles/covers.

Technical

  • A better solution might be make these load when they're rendered; since now we're fetching/rendering all 400 books when the user likely only ever be looking at max 10 at a time, but since this page is only viewable by one when logged in and looking at their own list, this is sufficient for now.

Testing

Before: https://openlibrary.org/people/el4ctr0n/lists/OL235242L/Specific_History_Books/edit
After: https://testing.openlibrary.org/people/el4ctr0n/lists/OL235242L/Specific_History_Books/edit

Screenshot

Stakeholders

@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 16.13%. Comparing base (1cd8f21) to head (106e9b9).
Report is 31 commits behind head on master.

Files Patch % Lines
...brary/plugins/openlibrary/js/lazy-thing-preview.js 0.00% 19 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9539      +/-   ##
==========================================
- Coverage   16.17%   16.13%   -0.04%     
==========================================
  Files          90       90              
  Lines        4736     4746      +10     
  Branches      824      825       +1     
==========================================
  Hits          766      766              
- Misses       3453     3463      +10     
  Partials      517      517              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdrini cdrini marked this pull request as ready for review July 9, 2024 14:49
@cdrini
Copy link
Collaborator Author

cdrini commented Jul 10, 2024

@rebecca-shoptaw Would you be able to take a look at this one?

Copy link
Collaborator

@rebecca-shoptaw rebecca-shoptaw left a comment

Choose a reason for hiding this comment

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

Lgtm! 🙂

@rebecca-shoptaw rebecca-shoptaw added the Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. label Jul 10, 2024
@cdrini cdrini merged commit 18c2463 into internetarchive:master Jul 12, 2024
4 checks passed
@cdrini cdrini deleted the 9535/fix/long-list-edit branch July 12, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The list edit page times out for lists with many books
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/internetarchive/openlibrary/pull/9539

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy