Skip to content

Internalize-pagination#6

Open
brachetti wants to merge 47 commits intoChannelApe:developfrom
brachetti:internalize=pagination
Open

Internalize-pagination#6
brachetti wants to merge 47 commits intoChannelApe:developfrom
brachetti:internalize=pagination

Conversation

@brachetti
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Most important for this PR is actually this commit 63b9cd3

@brachetti
Copy link
Copy Markdown
Contributor Author

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

@ryankazokas
Copy link
Copy Markdown
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