Skip to content

Conversation

@smubbs
Copy link
Contributor

@smubbs smubbs commented Nov 25, 2020

WHY are these changes introduced?

This PR will automatically populate with the current API versions supported for the Shopify Admin API.

Hopefully, this should remove the requirement to manually update the list of current API versions.

Fixes
#339

Versioning has been here a while and it's probably time we fix this manual update requirement. A manual system is fine, but it still causes issues with development and to not be able to select the currently available APIs, that is to say, to have to wait for this package to be updated every quarter is unreasonable. It is now 25 November, Release Candidate 2021-01 has been available for also 2 months now and it is still not supported here.

WHAT is this pull request doing?

ApiVersion.define_known_versions() has been changed to make a request to https://app.shopify.com/services/apis.json and automatically populate the versions list.

Checklist

  • I have updated the CHANGELOG (if applicable)
  • I have followed the Shopify Python guide

@ghost ghost added the cla-needed label Nov 25, 2020
@tanema
Copy link

tanema commented Nov 27, 2020

This looks great so far!

@smubbs
Copy link
Contributor Author

smubbs commented Nov 30, 2020

I've thought a bit about issuing a warning when a version number that is no longer supported was called, but I am now wondering if that is overkill. The versioning framework in the Admin API should handle this already, and arguably better than a warning here.

@smubbs smubbs marked this pull request as ready for review November 30, 2020 09:01
@smubbs smubbs closed this Nov 30, 2020
@smubbs smubbs reopened this Nov 30, 2020
@smubbs smubbs closed this Nov 30, 2020
@smubbs smubbs reopened this Nov 30, 2020
@smubbs
Copy link
Contributor Author

smubbs commented Nov 30, 2020

I can't get the CLA to clear for some reason.

@smubbs smubbs closed this Nov 30, 2020
@smubbs smubbs reopened this Nov 30, 2020
@ghost ghost removed the cla-needed label Nov 30, 2020
@andyw8
Copy link
Contributor

andyw8 commented Nov 30, 2020

@smubbs I've refreshed the CLA check, it's passing now.

@smubbs smubbs closed this Dec 2, 2020
@andyw8
Copy link
Contributor

andyw8 commented Dec 2, 2020

Superseded by #441

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.

3 participants