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

Internalize-pagination #6

Open
wants to merge 47 commits into
base: develop
Choose a base branch
from

Conversation

brachetti
Copy link
Contributor

Resolves #5

Internalizing of Pagination into API

Changes:
Added public methods getProducts() and getProducts(String... includes) into BigCommerceSdk class.
Added private method to end-recursively resolve and return paginated resources

Possible Drawbacks:
Depends on Java8
Still needs tests
Based off #4 , since it has need of PaginatedModel<T> class

ryankazokas and others added 30 commits February 23, 2018 07:50
GetCategories and getCategoriesAsTree
 Add options for getProducts
Change type of customFieldId to String
@brachetti
Copy link
Contributor Author

Most important for this PR is actually this commit 63b9cd3

@brachetti
Copy link
Contributor Author

@ryankazokas please take note that the visibility of page size has been changed to private in this PR

@ryankazokas
Copy link
Member

Sorry @brachetti for the delay, we have been super busy here. Thanks for doing this! I think the overloaded method without the pagination arguments like you have here, is the way to go. We should do this for all of our public methods where applicable.

If you can clean this up and add the tests, we can merge this into our develop branch.

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.

4 participants