-
Notifications
You must be signed in to change notification settings - Fork 212
added a name field to webhook subscriptions #6576
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Coverage report
Show files with reduced coverage 🔻
Test suite run success3359 tests passing in 1372 suites. Report generated by 🧪jest coverage report action from fc13dbb |
ad0e53b to
88db281
Compare
|
I have signed the CLA! |
88db281 to
2c76c59
Compare
2c76c59 to
e6e5eb6
Compare
|
Note: Shopify core changes must be deployed first before the CLI or adding the name field would fail to be recognized and error |
...i/models/extensions/specifications/app_config_webhook_schemas/webhook_subscription_schema.ts
Outdated
Show resolved
Hide resolved
@georgge293 This PR is already approved but the core changes won't be deployed until after BFCM. I see some chances this PR is still accidentally merged. Which might be fine because afaik there won't be more CLI releases before BFCM, but core pending deploys could take a few days to deploy after BFCM and we should be careful to not release the CLI until that specific PR is deployed if we don't want to release a broken feature. I may be a bit paranoid here, but what about moving this PR back to draft? You would keep the approvals and prevent an accidental merge from someone who hasn't read your comment on the core changes dependency |
Sounds good, will do. Thanks! |
closes https://github.com/shop/issues-event-foundations/issues/518
WHY are these changes introduced?
Adds support for the
namefield on webhook subscriptions when registered in the app'sshopify.app.tomlWHAT is this pull request doing?
namefield to webhook subscription TypeScript typesnamefield in webhook subscription schemas (must be a non-empty string if provided)nameattributeName validation:
How to test your changes
shopify.app.tomlwith anamefield while running local app development in dev dash:Example:
shopify app deployand verify it accepts the configurationname = ""and verify validation rejects itpnpm vitest loader.test.ts --runTophat: