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

[#339] Add a pagination fallback method in case call with "expand=true" fails. #340

Conversation

arlina-espinoza
Copy link
Contributor

Should fix #339.
It updates the listing method of the controller, so that if a call with expand=true fails (the default way to load all entities), it would retry fetching that page with just it's IDs (expand=false), and then loading each entity individually.
As mentioned in the issue comments, it is definitively not as performant, but it a solution to an edge case, and should allow showing all of the other entities (API products in the case of issue #339), while logging the errors in watchdog for both the expand=true call and the failed entity load call.
It should work, assuming the call with expand=false works.

@googlebot googlebot added the cla: yes Indicates CLA has been signed label Feb 25, 2020
@cnovak cnovak added this to the 8.x-1.6 milestone Feb 28, 2020
@cnovak
Copy link
Collaborator

cnovak commented Mar 2, 2020

Closing since this fix did not help customer.

@cnovak cnovak closed this Mar 2, 2020
@cnovak cnovak modified the milestones: 8.x-1.6, 8.x-1.7 Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates CLA has been signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In one api fails, all other edge functionality gets blocked
3 participants