Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Revert "Add declarative webhooks and remove imperative" #137

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

sle-c
Copy link
Contributor

@sle-c sle-c commented Jul 15, 2024

WHY are these changes introduced?

Related to Shopify/shopify-api-ruby#1328

This reverts commit 82b9d7a.

The template is not set up to handle declarative webhooks config yet. It's still relying on the convention of matching webhook topic with a job class after registering with a centralized manager.

https://github.com/Shopify/shopify_app/blob/b921685a0dbf1948905cd3057d35d2f484cdbce8/lib/shopify_app/managers/webhooks_manager.rb#L53

WHAT is this pull request doing?

Adds back webhook registrations for compliance topics and app/uninstalled

Test this PR

shopify app init --template=https://github.com/Shopify/shopify-app-template-ruby#sle-c/revert-declarative-webhook-config

Run shopify app dev and preview the app in your test shop

Checklist

Note: once this PR is merged, it becomes a new release for this template.

  • I have added/updated tests for this change
  • I have made changes to the README.md file and other related documentation, if applicable

@sle-c sle-c requested a review from a team as a code owner July 15, 2024 21:38
@sle-c sle-c merged commit 2710e23 into main Jul 15, 2024
7 checks passed
@sle-c sle-c deleted the sle-c/revert-declarative-webhook-config branch July 15, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants