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

Allow declarative webhooks template #4043

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

gonzaloriestra
Copy link
Contributor

@gonzaloriestra gonzaloriestra commented Jun 13, 2024

WHY are these changes introduced?

Related to https://github.com/Shopify/develop-app-inner-loop/issues/1504

We are adding declarative webhooks to the templates in Shopify/shopify-app-template-remix#743 and Shopify/shopify-app-template-ruby#131, but it's failing because not a valid schema in the CLI.

WHAT is this pull request doing?

The templates include a very simple legacy app schema, and then the CLI transforms it to the new schema when linking. But the legacy schema doesn't support webhooks, so I'm adding it here to be able to load the app.

How to test your changes?

  • p shopify app init --template=https://github.com/Shopify/shopify-app-template-remix#declarative-webhooks
  • p shopify app init --template=https://github.com/Shopify/shopify-app-template-ruby#declarative-webhooks

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

Copy link
Contributor

Thanks for your contribution!

Depending on what you are working on, you may want to request a review from a Shopify team:

  • Themes: @shopify/advanced-edits
  • UI extensions: @shopify/ui-extensions-cli
    • Checkout UI extensions: @shopify/checkout-ui-extensions-api-stewardship
  • Hydrogen: @shopify/hydrogen
  • Other: @shopify/app-management

Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
72.01% (-0.02% 🔻)
7354/10212
🟡 Branches
68.84% (-0.07% 🔻)
3599/5228
🟡 Functions
71.59% (+0.02% 🔼)
1950/2724
🟡 Lines
73.28% (-0.02% 🔻)
6935/9464
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / poll-app-logs.ts
91.84% (-4.32% 🔻)
75% (-11.36% 🔻)
71.43% (-3.57% 🔻)
91.84% (-4.32% 🔻)
🔴
... / content-tokens.ts
50% (-1.61% 🔻)
20% (-13.33% 🔻)
50%
48.28% (-1.72% 🔻)

Test suite run success

1694 tests passing in 792 suites.

Report generated by 🧪jest coverage report action from c65fcca

@gonzaloriestra gonzaloriestra marked this pull request as ready for review June 14, 2024 09:38
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.

@gonzaloriestra gonzaloriestra added the #gsd:36745 Declarative Webhooks label Jun 14, 2024
Copy link
Contributor

@alexanderMontague alexanderMontague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎩 looks good, thanks for fixing this!

.vscode/settings.json Show resolved Hide resolved
@gonzaloriestra gonzaloriestra added this pull request to the merge queue Jun 18, 2024
Merged via the queue into main with commit f1c9b04 Jun 18, 2024
37 checks passed
@gonzaloriestra gonzaloriestra deleted the allow-declarative-webhook-template branch June 18, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#gsd:36745 Declarative Webhooks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants