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

Update to API version 2022-07 #801

Merged
merged 15 commits into from
Jan 10, 2023
Merged

Update to API version 2022-07 #801

merged 15 commits into from
Jan 10, 2023

Conversation

nozzlegear
Copy link
Owner

No description provided.

@nozzlegear nozzlegear marked this pull request as draft October 20, 2022 21:47
@clement911
Copy link
Collaborator

😁

@nozzlegear
Copy link
Owner Author

For some reason I thought I had already done this! I was getting ready to do 2022-10 and realized I never got this one in like I thought.

@clement911
Copy link
Collaborator

2022-10 might be a tricky one because of customer protection data new requirements.
Some Shopify users might not want to migrate until they get approved.

@nozzlegear
Copy link
Owner Author

nozzlegear commented Oct 21, 2022 via email

@davidkdb
Copy link

davidkdb commented Nov 4, 2022

DO NOT UPGRADE TO 2022-10!!

This will cause major issues for apps because of the customer protection data. It might take a while before all your users get this approval, and they have until July 2023 to get this.

Probably best to wait until March/April 2023

@clement911
Copy link
Collaborator

We could potentially do the following:
-For 2022-10, create a new branch with an incremented major version
-For 2022-07, keep working on master, only incrementing minor version

This way, users could decide if they want to keep using 2022-07 for some time, until they are ready to move to 2022-10.

@nozzlegear nozzlegear marked this pull request as ready for review December 7, 2022 17:08
@alexhauser
Copy link
Contributor

It would indeed be great to get 2022-07 merged in time before 2022-04's deprecation on April 1st, 2023.

@nozzlegear
Copy link
Owner Author

Thanks for the reminder! I'm working on merging and publishing this today.

@nozzlegear
Copy link
Owner Author

All the tests pass for this, I'm just not quite sure where I left off so I don't know if this has all of the changes for 2022-07 incorporated yet.

@clement911
Copy link
Collaborator

I had a look at https://shopify.dev/api/release-notes/2022-07 and I believe this PR already removes all deprecated endpoints.
So I believe we can merge this and release 2022-07. Any reason not to?

@nozzlegear
Copy link
Owner Author

Thanks for checking! I agree, I had a look and it looks like everything deprecated is removed. And the new fulfillment endpoints are all implemented, tests are passing for them. Not sure why I never merged this.

@clement911
Copy link
Collaborator

look good to me

@clement911
Copy link
Collaborator

can we merge & release?

@nozzlegear
Copy link
Owner Author

nozzlegear commented Jan 10, 2023 via email

The checkout sales channel is disabled on ShopifySharp's dev store. Most likely this is due to the dev store's age.
Using DateTime.MaxValue would throw an ArgumentOutOfRangeException with message "The UTC time represented when the offset is applied must be between year 0 and 10,000."
@nozzlegear
Copy link
Owner Author

Okay, current status is all tests are passing except for the ProductListing_Tests and the CollectionListing_Tests. I won't be able to fix them tonight and I'm not sure if I'll have much time tomorrow. Any ideas on what might be broken here?

image

image

@clement911
Copy link
Collaborator

I imagine it's because the app you're testing with is not configured an a sales channel.

image

It could be that they changed the behaviour in 2022-07 to return 404 instead of empty results?

@nozzlegear
Copy link
Owner Author

Thanks, good catch! I'll test it with a sales channel app and see if it works. If so I'll just disable the tests and merge.

Private/custom apps cannot use sales channel APIs and therefore the tests can't be run.
@nozzlegear nozzlegear merged commit 06e9887 into master Jan 10, 2023
@nozzlegear nozzlegear deleted the 2022-07 branch January 10, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants