Skip to content

Filter explicit store lookups to active stores#7529

Open
dmerand wants to merge 1 commit into
mainfrom
donald/list-app-dev-stores-store-status-filter
Open

Filter explicit store lookups to active stores#7529
dmerand wants to merge 1 commit into
mainfrom
donald/list-app-dev-stores-store-status-filter

Conversation

@dmerand
Copy link
Copy Markdown
Contributor

@dmerand dmerand commented May 11, 2026

What

Filter explicit Business Platform store lookups to active stores.

This makes storeByDomain apply the same active-store constraint that PR #7500 already added to the app dev store selection list.

Why

The list path stopped surfacing inactive or deleted stores, but explicit domain lookup still only filtered by store type.

That left --store flows able to resolve stores the CLI should no longer treat as valid, including mixed store-type callers like store execute.

How

  • add STORE_STATUS=ACTIVE to storeByDomainFilters for every requested store type
  • remove the deferred follow-up breadcrumb in the lookup helper
  • add focused coverage for the request shape and mixed store-type lookup path

Testing

To test:

  • run shopify app dev --store <inactive-dev-store> and confirm the CLI does not resolve it
  • run shopify store execute --store <inactive-or-deleted-store> --query '{ shop { name } }' and confirm the lookup fails instead of selecting that store

Copy link
Copy Markdown
Contributor Author

dmerand commented May 11, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@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 May 11, 2026
@dmerand dmerand temporarily deployed to breaking-change-approval May 11, 2026 19:17 — with GitHub Actions Inactive
@dmerand dmerand marked this pull request as ready for review May 12, 2026 16:16
@dmerand dmerand requested a review from a team as a code owner May 12, 2026 16:16
Copilot AI review requested due to automatic review settings May 12, 2026 16:16
@dmerand dmerand force-pushed the donald/list-app-dev-stores-store-status-filter branch from 59a45b9 to e3c4376 Compare May 12, 2026 16:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the Business Platform “store-by-domain” lookup path to exclude inactive/deleted stores, aligning explicit --store flows with the active-store filtering already applied to the app dev store list.

Changes:

  • Add STORE_STATUS=ACTIVE to the filter set used by storeByDomain for every requested store type.
  • Remove the prior “follow-up” breadcrumb comment now that the filtering behavior is implemented.
  • Add unit tests covering the request shape (including STORE_STATUS=ACTIVE) and a mixed store-type lookup that resolves on the second result.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/app/src/cli/utilities/developer-platform-client/app-management-client.ts Tightens storeByDomain query filters to only return active stores.
packages/app/src/cli/utilities/developer-platform-client/app-management-client.test.ts Adds focused coverage verifying active-store filtering and mixed store-type lookup behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants