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

Declarative webhooks relative paths #3948

Closed
wants to merge 2 commits into from

Conversation

alexanderMontague
Copy link
Contributor

@alexanderMontague alexanderMontague commented May 29, 2024

WHY are these changes introduced?

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

How to test your changes?

  • deploy and link with relative subscription URIs, check the config to make sure it inherits the app url

Copy link
Contributor

We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset.
If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

Copy link
Contributor

github-actions bot commented May 29, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
71.92% (+0.03% 🔼)
7158/9953
🟡 Branches
69.21% (+0.2% 🔼)
3544/5121
🟡 Functions
71.65% (+0.14% 🔼)
1921/2681
🟡 Lines
73.19% (+0.03% 🔼)
6736/9204
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / init.ts
0% 0% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / app.test-data.ts
93.1% (-0.57% 🔻)
93.41%
83.56% (-1.37% 🔻)
92.59% (-0.62% 🔻)
🟢
... / extension-instance.ts
86.03% 78.43%
91.11% (-0.19% 🔻)
87.4%
🟢
... / app_config_privacy_compliance_webhooks.ts
100%
93.55% (-2.75% 🔻)
100% 100%
🟢
... / app_config_webhook.ts
98.36% (+0.06% 🔼)
84.62% (-3.96% 🔻)
100% 100%
🟢
... / common.ts
87.5% (-12.5% 🔻)
88.89% (-11.11% 🔻)
100% 100%
🟢
... / setup-dev-processes.ts
94.87% (-0.25% 🔻)
68.18% (-2.65% 🔻)
90%
94.12% (-0.33% 🔻)
🟢
... / Dev.tsx
92.68% (-0.34% 🔻)
77.78%
89.47% (-1.44% 🔻)
93.51% (-0.32% 🔻)
🟢
... / ConcurrentOutput.tsx
97.62% (-0.74% 🔻)
75% (-13.89% 🔻)
100%
97.44% (-0.87% 🔻)

Test suite run success

1669 tests passing in 775 suites.

Report generated by 🧪jest coverage report action from 32b7e57

introduce local app config singleton, relative URIs on deploy

simplify webhook app URIs to relative paths on link

add manual mock for LocalAppConfiguration
@alexanderMontague alexanderMontague force-pushed the declarative_webhooks_relative_paths branch from 0296486 to 6811acc Compare May 30, 2024 19:01
@alexanderMontague alexanderMontague force-pushed the declarative_webhooks_relative_paths branch from 6811acc to 32b7e57 Compare May 30, 2024 19:11
@alexanderMontague
Copy link
Contributor Author

#395

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