-
Notifications
You must be signed in to change notification settings - Fork 474
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
warning raised for version eol #685
Conversation
cc: @Shopify/api-patterns-team |
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.
Code looks good. We just need to be more consistent with our terminology.
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.
I agree with Scott's comments, but otherwise the code LGTM (with one very small nit)
85a969e
to
37e4a44
Compare
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.
LGTM it seems like others have reviewed terminology etc.
Closes https://github.com/Shopify/shopify/issues/233879
TL;DR This pull request is raised to add a warning message case of API Version being used to make a call is expired or will expire within 30 days
Background:
Currently, a warning header is added to the responses of all admin and storefront APIs that are using a version that expires within 30 days or is expired already. This was done through https://github.com/Shopify/shopify/pull/232580
Now, we want to raise warning messages through the Shopify API gem as well if API calls are made using expired or EOL versions.
Solution
The response headers of the API responses are checked for the presence of the version EOL warning header. If present, a warning message is raised.