Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.06k stars 469 forks source link

Ability to use upcoming GraphQL version for testing #1306

Open netwire88 opened 6 months ago

netwire88 commented 6 months ago

Overview

Currently, we can only use unstable and current version of GraphQL. It'll be very useful to use upcoming releases for development & testing. For example, even though it's April 4, 2024, we still cannot use 2024-04. It usually takes a week for Shopify to update shopify_api and then more time for shopify_app to be updated.

Uncaught exception: Invalid version 2024-04, supported versions: ["unstable", "2024-01", "2023-10", "2023-07", "2023-04", "2023-01", "2022-10", "2022-07", "2022-04", "2022-01"]
lizkenyon commented 6 months ago

Hi there 👋

I can definitely see the value in having access to the release candidate API version! The team will look into adding this.

michael-groble commented 6 months ago

what's hilarious is that this constant isn't frozen, so you can get by this with:

ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS << '2024-04'

(seems I spoke too soon, that gets further, but still problems using graphql fields deprecated in 2024-04 )

rbarreca commented 6 months ago

It looks like this was fixed in #1305 and is also in the latest release of shopify_app gem 22.1.