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

v5: pagination in content manager not work as expected #20005

Open
uptonking opened this issue Apr 3, 2024 · 2 comments · Fixed by #20178
Open

v5: pagination in content manager not work as expected #20005

uptonking opened this issue Apr 3, 2024 · 2 comments · Fixed by #20178
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 5

Comments

@uptonking
Copy link

uptonking commented Apr 3, 2024

Bug report

Required System information

  • Node.js version: v20.12.0
  • NPM version: v10.1.0
  • Strapi version: both v5.0.0-beta.1 and v5.0.0-beta.2
  • Database: sqlite
  • Operating system: ubuntu 22.04
  • Is your project Javascript or Typescript: ts

Describe the bug

  • pagination in content manager not work as expected
  • by default only 10 entries should show in content manager, but all the 11 entries all show up

Steps to reproduce the behavior

  1. npx create-strapi-app@beta test-page11 --quickstart --ts
  2. npm install --legacy-peer-deps
  3. npm run develop
  4. create a new collection type, and create 11 entries in content manager. and all the 11 entries show up by default, instead of 10

🐛 I've tested on both v5-beta.1 and v5-beta.2, the problem exists on both versions

Expected behavior

  • only 10 entries should show in content manager by default

Screenshots

Screenshot from 2024-04-03 20-34-41

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

Add any other context about the problem here.

@derrickmehaffy derrickmehaffy added version: 5 issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels Apr 3, 2024
@smoove
Copy link

smoove commented Apr 4, 2024

The pageSize does not seem to be evaluated, i got this response from the REST Api when setting pageSize to 1:

image

Notice that there are 2 items under "data".

@Eventyret
Copy link
Contributor

confirmed in beta v5.0.0-beta.4

Image

Image

Adding a screenshot that the ID / numbers are all over the place but note that the total entries says 13 and pagination is set to 10 in default screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 5
Projects
Status: In progress
Status: Done
Status: To review
Development

Successfully merging a pull request may close this issue.

4 participants