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

Update mutation variables for AppCreate #5436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmerand
Copy link
Contributor

@dmerand dmerand commented Feb 19, 2025

Per https://github.com/Shopify/develop-app-inner-loop/issues/2530, update the AppCreate mutation to use app manifests via the AppVersionInput object.

WHY are these changes introduced?

We updated the API shape + need the CLI to follow suit.

WHAT is this pull request doing?

Changing the AppCreate mutation to use AppVersionInput instead of AppSourceInput. Because the GraphQL interface specifies a very generic JSON type, Added the AppVersionSource interface to help ensure we're using the right data shape.

The alternative to AppVersionSource would be for the API to somehow advertise the expected shape of the AppSource manifest. Since this shape isn't expected to evolve over time, I feel that it's OK to hard-code into both sides of the API (as AppVersionSource in the CLI, and as Source in shop/world). But I could be convinced otherwise.

How to test your changes?

If you can create an app, it's working: p shopify app init and then create a new app.

Post-release steps

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

Copy link
Contributor

github-actions bot commented Feb 19, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.71% (+0.01% 🔼)
9107/12029
🟡 Branches
70.9% (+0.02% 🔼)
4452/6279
🟡 Functions 75.4% 2375/3150
🟡 Lines
76.25% (+0.02% 🔼)
8600/11279
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / app-event-watcher.ts
95.18% (-1.2% 🔻)
86.49% (-2.7% 🔻)
95.45% 100%

Test suite run success

2065 tests passing in 922 suites.

Report generated by 🧪jest coverage report action from 506e356

@dmerand dmerand force-pushed the dlm-app-create-mutation-variables branch from 4ccd141 to c3a6297 Compare February 19, 2025 21:05
@dmerand dmerand marked this pull request as ready for review February 20, 2025 15:37
@dmerand dmerand requested a review from a team as a code owner February 20, 2025 15:37
Copy link
Contributor

We detected some changes at packages/*/src 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.

@dmerand dmerand force-pushed the dlm-app-create-mutation-variables branch from c3a6297 to d45a6ab Compare February 20, 2025 21:30
@dmerand dmerand force-pushed the dlm-app-create-mutation-variables branch from d45a6ab to 506e356 Compare February 20, 2025 22:04
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