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

politeiawww: Fix legacy pagination bug. #1397

Merged
merged 2 commits into from
Apr 13, 2021
Merged

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Apr 13, 2021

Multiple legacy routes were previously returning 500s because the legacy
API does not paginate properly in a lot of routes, but the politeiad v2
API expects the requests to be paginated, causing errors to occur.

This diff updates the function that is used to request proposals from
politeiad for the legacy routes to paginate the requests properly. It
also updates the pictl legacytest command that tests the legacy routes
to specifically test the pagination issue.

Multiple legacy routes were previously returning 500s because the legacy
API does not paginate properly in a lot of routes, but the politeiad v2
API expects the requests to be paginated, causing errors to occur.

This diff updates the function that is used to request proposals from
politeiad for the legacy routes to paginate the requests properly. It
also updates the `pictl legacytest` command that tests the legacy routes
to specifically test the pagination issue.
@lukebp lukebp merged commit af2424f into decred:master Apr 13, 2021
@lukebp lukebp deleted the bug-legacy branch April 29, 2021 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants