question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error after enabling Partial Pagination

See original GitHub issue

I have a table with 7 million rows, so pagination is very slow since it is running the count query. So I have set the partial pagination to true in my Global configuration.

But in the admin section when I select this table I am getting the below error.

Given action “RA/CRUD_GET_LIST_SUCCESS”, reducer “total” returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.

Any one has any idea, any help will be much appreciated. Thanks.

Edit 1: More info and Steps to Reproduce added.

  1. A normal request would return a Response with “totalItems” "hydra:totalItems": 3328
  2. When you enable Partial Pagination then we don’t have “totalItems” in the Response anymore. I Think this is a problem in the admin since it is always expecting “totalItems”.

Steps to Reproduce:

  1. Enable Partial Pagination # api/config/packages/api_platform.yaml api_platform: collection: pagination: partial: true # Disabled by default
  2. Browse the admin and you will get the error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ssengedonazilcommented, Jun 19, 2020

I have same ussue

0reactions
emulienfoucommented, Apr 14, 2020

For information, same issue happens when you disabling pagination for an entity, such as: @ApiResource(attributes={"pagination_enabled"=false})

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after enabling Partial Pagination - Bountysource
I have a table with 7 million rows, so pagination is very slow since it is running the count query. So I have...
Read more >
(Classic) Report losing pagination on partial page refresh
The only thing you need to do is to enable it in the report attributes - "Enable Partial Page Refresh" needs to be...
Read more >
pagedlist in partial view not working correctly- MVC4
I am getting problem when any of page is clicked again, then it doesn't load it into div allvendors-partial instead it goes to...
Read more >
Solved: Enable pagination for Custom Connector Action
When I try to use it with the response body I get where the info is inside pagination->nextUrl, I get this error: Specified...
Read more >
Pagination not working on Homepage, but works on the List ...
Additionally, you have hardcoded the page collection in your “pagination” partial. That's not going to work. I suggest you pass a page ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found