Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Log translated webhook topic when not found #626

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

paulomarg
Copy link
Contributor

WHY are these changes introduced?

Part of #625

Currently, we're using topic when throwing an error because a webhook handler was not found. While it isn't incorrect, we should be using graphqlTopic to show the PRODUCTS_UPDATE format rather than products/update, so that the error isn't misleading for callers.

WHAT is this pull request doing?

Changing the variable we use for the error message to make the message consistent with the configuration.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change

@paulomarg paulomarg force-pushed the log_graphql_topic_in_webhook_errors branch from 82cfa99 to e13713c Compare December 7, 2022 19:20
@paulomarg paulomarg requested a review from a team December 7, 2022 19:21
@paulomarg paulomarg force-pushed the log_graphql_topic_in_webhook_errors branch from e13713c to eb676b2 Compare December 14, 2022 13:52
@paulomarg paulomarg merged commit d5d79c3 into main Dec 14, 2022
@paulomarg paulomarg deleted the log_graphql_topic_in_webhook_errors branch December 14, 2022 13:59
@shopify-shipit shopify-shipit bot temporarily deployed to production December 20, 2022 20:22 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants