- Look for breaking changes in the release notes in the Rest API section
- Example of a breaking change in 2021-10
- Handle the breaking changes (this will be case by case and cannot be generalized here)
- Update
config.api_versionin this fileconfig/initializers/shopify_app.rbconfig.api_version = "2021-10"
- Run
dev test - The output might have the following messages:
VCR is currently using the following cassette:
- /Users/michelbalamou/src/github.com/Shopify/stocky/spec/fixtures/api_responses/Sync_Shopify_AverageCostJob/_perform/updates_inventory_item_cost_to_be_variant_average_cost.yml- Proceed to find all the
yamlfiles in the output and delete them, then re-rundev test. This will regenerate theyamlfiles. - After regenerating all the
yamlfiles the output might still have errors, but they should be unrelated to theyamlfiles. Proceed to handle them (again this will be different for each breaking change).