Skip to content

Simplify dashboard extension import error handling - #8876

Open
isaacroldan wants to merge 1 commit into
mainfrom
codex/simplify-dashboard-import-errors
Open

isaacroldan wants to merge 1 commit into
mainfrom
codex/simplify-dashboard-import-errors

Conversation

@isaacroldan

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

The dashboard-extension import catch block combines completion, JSON construction, reporting, and exit handling. This follows Gonzalo's review comment on #8819.

WHAT is this pull request doing?

Separate failure classification from result construction so the catch has one JSON write and one flush. Preserve fatal errors, completed imports, telemetry, output, and exit codes.

Terminal Cancel keeps the existing silent exit code 1. Its JSON remains {"status":"cancelled","reason":"directory-selection-cancelled","extensions":[],"errors":[],"identifiersUpdated":false} when no imports completed.

How to manually test your changes?

  1. In a fresh copy of a linked test app with a dashboard-managed extension, create its local extension directory and run shopify app import dashboard-extensions --path <copy> --json. Choose Cancel and check one cancelled result and exit code 1.
  2. In another fresh copy, choose Keep local TOML and check the success result with changed: false. Run without --json to compare the original text.

Checklist

  • I've considered possible cross-platform impacts
  • I've considered documentation changes
  • I've considered analytics changes

@isaacroldan
isaacroldan requested a review from a team as a code owner October 13, 2026 14:27
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Oct 13, 2026
@isaacroldan

Copy link
Copy Markdown
Contributor Author

/snapit

@github-actions

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm.

Built from 087f11ca1c68978503cc24f258721cb1e7c1b8de. Workflow run.

Test the snapshot by installing your package globally:

pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]

Caution

After installing, validate the version by running shopify version in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant