Deprecation Warning for products, inventory_items, and product metafields #196
+50
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
(This PR won't be merged into the master branch, as the particular changes are for the older version of tap)
This PR introduces a mechanism to warn users about the deprecation of the products and variants streams in tap-shopify. Shopify is sunsetting the REST API endpoints for these streams, and they will no longer be supported after 31st January 2025. Users are required to upgrade to the latest version of tap-shopify, which uses GraphQL-based endpoints for these streams.
Changes Introduced:
Deprecation Warning:
If the products or variants streams are selected, a deprecation warning is raised before the cutoff date (31st January 2025).
- Stream name(s).
- Cutoff date.
- Remaining days until deprecation.
- Instructions to upgrade to the latest version.
Custom Exception:
Example Behavior:
If the user selects the products stream:
If the user selects the products stream:
Rollback steps