Skip to content

Conversation

@isaacroldan
Copy link
Contributor

@isaacroldan isaacroldan commented Sep 25, 2025

WHY are these changes introduced?

To fix an issue where store domains were not being properly normalized when fetched from the Business Platform API.

WHAT is this pull request doing?

  • Adds the url field to the GraphQL query for listing app development stores
  • Updates the mapBusinessPlatformStoresToOrganizationStores function to use the normalized URL from the store data
  • Enhances the normalizeStoreFqdn function to handle URLs with /admin paths
  • Makes normalizeStoreFqdn synchronous since it no longer needs to be async

How to test your changes?

  1. Run shopify app dev with a store that has a custom primary domain

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

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Copy link
Contributor Author

isaacroldan commented Sep 25, 2025

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

@isaacroldan isaacroldan marked this pull request as ready for review September 25, 2025 09:34
@isaacroldan isaacroldan requested a review from a team as a code owner September 25, 2025 09:34
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 25, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
78.95% (-0% 🔻)
13308/16856
🟡 Branches
72.63% (-0.01% 🔻)
6497/8945
🟡 Functions 79.15% 3440/4346
🟡 Lines
79.31% (+0% 🔼)
12570/15850
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / app-management-client.ts
53.45% (-0.32% 🔻)
47.06% (-0.62% 🔻)
49.54%
52.26% (-0.17% 🔻)

Test suite run success

3228 tests passing in 1336 suites.

Report generated by 🧪jest coverage report action from ccbd42a

@isaacroldan isaacroldan mentioned this pull request Sep 25, 2025
3 tasks
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

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

Test the snapshot by installing your package globally:

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

Caution

After installing, validate the version by running just shopify 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.

@isaacroldan isaacroldan force-pushed the 09-25-fix_dev_stores_with_custom_domains branch from c79edca to ccbd42a Compare October 3, 2025 09:31
@isaacroldan isaacroldan requested a review from a team as a code owner October 3, 2025 09:31
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

We found no new type declarations in this PR

Existing type declarations

packages/cli-kit/dist/public/node/context/fqdn.d.ts
@@ -50,4 +50,4 @@ export declare function identityFqdn(): Promise<string>;
  * @param store - Store name.
  * @returns Normalized store name.
  */
-export declare function normalizeStoreFqdn(store: string): Promise<string>;
\ No newline at end of file
+export declare function normalizeStoreFqdn(store: string): string;
\ No newline at end of file

@isaacroldan isaacroldan added this pull request to the merge queue Oct 3, 2025
Merged via the queue into main with commit edcd06f Oct 3, 2025
2 checks passed
@isaacroldan isaacroldan deleted the 09-25-fix_dev_stores_with_custom_domains branch October 3, 2025 09:46
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.

3 participants