Skip to content

Conversation

@smubbs
Copy link
Contributor

@smubbs smubbs commented Dec 2, 2020

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.

WHY are these changes introduced?

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.

Updated TestCase.fake() default to using an url when provided or constructing one when endpoint is provided.

Added payload api_version.json for call in fake('apis'...)

Checklist

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

@andyw8 andyw8 mentioned this pull request Dec 2, 2020
2 tasks
Copy link
Contributor

@mllemango mllemango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this! I've tested locally and this looks good!

@smubbs
Copy link
Contributor Author

smubbs commented Jan 5, 2021

Thanks! Happy to help.

@mllemango mllemango merged commit e34d095 into Shopify:master Jan 5, 2021
@andyw8
Copy link
Contributor

andyw8 commented Jan 5, 2021

(note that we're missing a changelog entry for this, even though the checkbox was checked).

@mllemango
Copy link
Contributor

Good catch, I'll add an entry with the new release PR if thats fine.

mllemango pushed a commit that referenced this pull request Mar 25, 2021
This reverts commit e34d095, reversing
changes made to fa6bbd3.
mllemango pushed a commit that referenced this pull request Mar 25, 2021
This reverts commit e34d095, reversing
changes made to fa6bbd3.
mllemango pushed a commit that referenced this pull request Mar 25, 2021
This reverts commit e34d095, reversing
changes made to fa6bbd3.
mllemango pushed a commit that referenced this pull request Mar 25, 2021
This reverts commit e34d095, reversing
changes made to fa6bbd3.
mllemango pushed a commit that referenced this pull request Mar 25, 2021
This reverts commit e34d095, reversing
changes made to fa6bbd3.
mllemango pushed a commit that referenced this pull request Mar 25, 2021
Revert "Merge pull request #441 from smubbs/dynamic-api-version"
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.

Dynamic API Version support

4 participants