We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The function getAvailableSizes in the DigitalOceanClient class ignores the pageNo parameter.
getAvailableSizes
DigitalOceanClient
This happens because pageNo is passed to the wrong ApiRequest constructor on line 785 of the DigitalOceanClient class.
pageNo
ApiRequest
This may be an issue with other endpoints that use pagination.
Instead of using this constructor:
public ApiRequest(ApiAction apiAction, Object data) { ... }
Use the constructor that uses pageNo and perPage:
perPage
public ApiRequest(ApiAction apiAction, Integer pageNo, Integer perPage) { ... }
Then pass in the default perPage value on line 785 of DigitalOceanClient:
return (Sizes) perform(new ApiRequest(ApiAction.AVAILABLE_SIZES, pageNo, DEFAULT_PAGE_SIZE)).getData();
The text was updated successfully, but these errors were encountered:
@Mac-Genius Thank you for reporting it with detailed information. Yeah, I see an issue. I will fix it tonight or tomorrow and make a release.
Sorry, something went wrong.
Thank you!
#80 fix pagination for certian methods
44d9f6a
- getAvailableRegions - getAvailableSizes - getAvailableDomains - getAvailableKeys
I have fixed the issue, affected methods are -
And published 2.15-SNAPSHOT. Please give it try and let me know.
2.15-SNAPSHOT
@Mac-Genius I hope everything seems alright, I'm closing this one. Thank you.
@jeevatkm Sorry it took me so long, everything seems to be working properly now. Thank you!
@Mac-Genius no worries, good to hear its working properly.
jeevatkm
No branches or pull requests
Description
The function
getAvailableSizes
in theDigitalOceanClient
class ignores the pageNo parameter.This happens because
pageNo
is passed to the wrongApiRequest
constructor on line 785 of theDigitalOceanClient
class.This may be an issue with other endpoints that use pagination.
Possible Fix
Instead of using this constructor:
Use the constructor that uses
pageNo
andperPage
:Then pass in the default
perPage
value on line 785 of DigitalOceanClient:The text was updated successfully, but these errors were encountered: