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

Pagination of collections not working properly on Admin UI #10170

Open
Danil0v3s opened this issue Dec 25, 2024 · 0 comments
Open

Pagination of collections not working properly on Admin UI #10170

Danil0v3s opened this issue Dec 25, 2024 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@Danil0v3s
Copy link

Describe the Bug

Whenever I open a collection I can briefly see the page render everything without pagination and only then the pages get created. We suspect this issue is happening on V2 as well because once in a while we get our API key from S3 rate limited. I could observe the logs are fetching every image I have on s3, we could also see this on another collection taking 8000+ms to load.

 GET /admin/collections/external-transactions 200 in 8340ms
 GET /admin/collections/external-transactions 200 in 7456ms
 GET /admin/collections/external-transactions?limit=10 200 in 728ms
 POST /admin/collections/external-transactions 200 in 232ms
 POST /admin/collections/external-transactions 200 in 211ms
 POST /admin/collections/external-transactions 200 in 205ms
 GET /admin/collections/external-transactions?limit=10 200 in 804ms

By the logs, it seems the first iteration on the page is being requested without the limit?=10 even though I opened via sidebar, triggering a full load.
Image
Image

Link to the code that reproduces this issue

https://github.com/Danil0v3s/payload/tree/pagination-issue

Reproduction Steps

  • Run
  • Open Posts collection

Observe logs.

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Payload: 3.11.0
Node.js: 18.20.3
Next.js: 15.0.3
@Danil0v3s Danil0v3s added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant