-
Notifications
You must be signed in to change notification settings - Fork 113
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
Initial support for Custom Collections #26
Conversation
@RomanTheLegend thanks for the PR! I'll review this weekend. It looks like your commit isn't passing the CI build due to excessive log length though. Can you ensure you run |
4dce755
to
8ada19b
Compare
Whelp, that's strange... First I though that's because my branch was forked from master, not develop, but then I took pitestHostory from develop and results are the same |
@RomanTheLegend looks like that didn't work. Is that just the pittest file from the current develop or is that the one that resulted from your |
I tried both clean
"upmaster" is ChannelApe repo |
@RomanTheLegend @ryankazokas the PIT history file can sometimes get corrupt. @RomanTheLegend can you try deleting the file locally then recreating it by running You can read more on incremental analysis with PIT here: Also just be aware that the build will take quite a while without this file. We have an open issue ( #13) to speed up the build. |
8ada19b
to
f4be88b
Compare
f4be88b
to
00c156f
Compare
This time ran tests on my other machine and it miraculously worked 😕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good work on this PR. Thanks @RomanTheLegend !. I have some minor feedback. Once you are complete let me know and i'll re-review and do some user testing to confirm things are working as expected
src/main/java/com/shopify/model/ShopifyCustomCollectionCreationRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/shopify/model/ShopifyCustomCollectionCreationRequest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/shopify/model/ShopifyCustomCollectionCreationRequestTest.java
Show resolved
Hide resolved
Thank you for feedback, I will address these issues on weekend |
@ryankazokas Please check if everything's ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just add your missing test coverage here and this looks good for us to merge. If at all possible, can you please do this sooner rather than later? We are working on upgrading the sdk to support cursor pagination since it will not be supported soon for some of the API's we are using. We can handle the updates for these changes if they are already merged in, other wise we'll ask you to hold on this PR until those are complete and have you make those changes after we update the develop version of the SDK.
|
||
|
||
@Test | ||
public void simpleProductCreationRequest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this test to a given/when/then format like the rest of the tests.
@@ -3182,6 +3185,64 @@ public void givenStoreWith305ProductsWhenRetrievingProductsThenReturnShopifyProd | |||
} | |||
} | |||
|
|||
@Test | |||
public void givenSomeCustomColelctionsCreationRequestCreateAndReturnCustomCollection() throws JsonProcessingException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job on this test. Just add coverage on the other two methods you added and this looks good for us to merge in.
- getCustomCollections(final int page, final int pageSize)
- getCustomCollections()
Implemented by 2.0.0 release. |
Basic functionality for creating Custom Collections in Shopify.
Submitting this as small PR just to get the initial feedback on compliance with your style and requirements.
In future PRs I'm planning to further extend the functionality: