-
Notifications
You must be signed in to change notification settings - Fork 115
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
Relative uris declarative subscriptions #3956
Relative uris declarative subscriptions #3956
Conversation
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
Coverage report
Show files with reduced coverage 🔻
Test suite run success1684 tests passing in 781 suites. Report generated by 🧪jest coverage report action from 9b4b90c |
|
||
[[webhooks.subscriptions]] | ||
topics = [ "products/create", "products/update" ] | ||
uri = "/webhooks" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
packages/app/src/cli/models/extensions/specifications/validation/common.ts
Outdated
Show resolved
Hide resolved
import {WebhooksConfig, NormalizedWebhookSubscription, WebhookSubscription} from '../types/app_config_webhook.js' | ||
import {deepCompare, deepMergeObjects, getPathValue} from '@shopify/cli-kit/common/object' | ||
|
||
export function transformFromWebhookConfig(content: object) { | ||
export function transformFromWebhookConfig(content: object, appConfiguration: AppConfigurationWithoutPath) { | ||
const webhooks = getPathValue(content, 'webhooks') as WebhooksConfig | ||
if (!webhooks) return content | ||
|
||
const webhookSubscriptions = [] | ||
// eslint-disable-next-line @typescript-eslint/naming-convention |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added to https://github.com/Shopify/develop-app-management/issues/1797
Maybe we could change https://typescript-eslint.io/rules/naming-convention/#ignore-destructured-names -- if you're destructuring its not really your fault that the names are "wrong".
WHY are these changes introduced?
depends on #3955
closes https://github.com/Shopify/develop-app-management/issues/1599
Adds relative URIs to your app's URL to declarative webhooks
WHAT is this pull request doing?
exposes the fullAppConfiguration to various deploy and link locations in order to transform webhook subscriptions by checking the application_url