Draft
Conversation
This reverts commit 58377bb.
# Conflicts: # CHANGELOG.md
This technically has some basic guarding from settings path/URI, but a nosy user could still attempt to hit some actions via `Craft.postActionRequest(...)` or other means.
Also guarded “coincidentally,” but accessible via direct `?action=` routing.
# Conflicts: # CHANGELOG.md
…Key` to be consistent with Shopify’s terminology
This is a bit of housekeeping, and a bit of soul-searching. I had a heck of a time reasoning about when and why Shopify was producing errors, so I figured it was worth expressing the variety of message structures that we may get back from the API. - Network/connection or "client" errors, in Guzzle-land (not specific to Shopify) are caught and re-thrown with a generic message. - API consumers (things that call `Api::query()` can basically catch a single kind of error and decide what to do - Those queries no longer have to worry about unpacking and handling various response structures (like `userErrors`), or the root element in each response named the same as the original query or procedure. - We now throw on any session issue before querying, rather than relying on individual consumers. - We no longer throw on “empty” or missing `data` keys in responses (they're just returned verbatim, and it's up to the consumer to decide whether that’s “bad”) - If you really need to perform a low-level, unopinionated query, use `Api::getGqlClient()` directly. - Webhook setup and messaging has been improved - Filter webhooks by environment/URI at the API level, rather than in the controller - Simplified how we detect and repair "missing" webhook topic subscriptions - We now use a template and natural form requests and success/failure response handlers for the webhook management view - Moved away from deprecated `endpoint` and `callbackUrl` fields when creating and fetching webhooks, in favor of the plain `uri` field - Bulk operation handling is no longer concerned with API response structure, errors, etc. (per above) - For stores that use bulk GQL *mutations*, we now look for specifically bulk *query* operations (one mutation and one query can run in parallel) - ?!?!
…ooks This was made easier with the introduction of GIDs (`admin_graphql_api_id`) in most/all webhooks.
Howdy, stranger! If you're reading this and would like to start a support group for Shopify developers, let me know… they have it pretty rough.
…nto feature/7.x-new-oauth-process
… the fields (i.e. `MetaField`s) retrieved from the API. Of course, this is sort of a mess to parse (programmatically) given the number of `node` and `edges` keys, as well as numerically-indexed field names. My idea was that this could be triggered from other places… so the event class name is generic; the event name itself is specific to products, though!
[7.x] New OAuth process
# Conflicts: # README.md
[ci skip]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
New version of the plugin supporting that latest methodology of integrating with Shopify's custom app system.
Other improvements