-
Notifications
You must be signed in to change notification settings - Fork 145
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
Stop updating the app urls in the app toml when using the app management API #5246
base: 01-21-patch_the_app_manifest_with_the_development_urls_add_tests
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
We detected some changes at packages/*/src and there are no updates in the .changeset. |
b965907
to
6f9b1e8
Compare
8a036b9
to
14732be
Compare
} else { | ||
// When running dev app urls are pushed directly to API Client config instead of creating a new app version | ||
// so current app version and API Client config will have diferent url values. | ||
await updateURLs(newURLs, apiKey, developerPlatformClient, localApp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need localApp.devApplicationURLs = newURLs
in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the legacy behavior that doesn't use manifests, so not needed and eventually this branch of the code should be deleted.
Coverage report
Show files with reduced coverage 🔻
Test suite run success2008 tests passing in 906 suites. Report generated by 🧪jest coverage report action from 5dfd581 |
1662daa
to
3eae494
Compare
14732be
to
5dfd581
Compare
WHY are these changes introduced?
For dev sessions we don't want to update the toml, but to inject the Application URLs directly in the toml at runtime.
WHAT is this pull request doing?
Refactors the partner URL updating logic to:
How to test your changes?
Remember that you can find the manifest in
./shopify/bundle
while runningapp dev
dev
with dev sessions enabledautomatically_update_urls_on_dev = true
:dev
, doesn't update them in the manifest (the manifest keeps the tunnel URL and ignores url changes from the toml)automatically_update_urls_on_dev = false
:dev
, DO also update them in the manifest.dev
without dev sessionsMeasuring impact
Checklist