-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add pos_ui_extension to migration for ui_extension #4162
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/cli': minor | ||
--- | ||
|
||
Added extension type pos_ui_extension to the ui_extension migration process | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,15 @@ export async function extensionMigrationPrompt( | |
.map((name) => `"${name}"`) | ||
.join(', ') | ||
|
||
const migrationEndType = toMigrate.map(({local}) => `"${local.type}"`).join(', ') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Followed the same structure as the other variables in the prompt, but oddly enough this always ends up being one value in the toMigrate, even if there are two extensions to be migrated. Then if you deploy again, it will go to the second extension that needs to be migrated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @isaacroldan any ideas? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean you have 2 local ui_extensions and 2 remote pos_ui_extension but only 1 in the The code at Also, specifically about this line of code, you are not filtering for duplicated types here, check how |
||
|
||
renderInfo({ | ||
headline: "Extension migrations can't be undone.", | ||
body: `Your ${migrationNames} configuration has been updated. Migrating gives you access to new features and won't impact the end user experience. All previous extension versions will reflect this change.`, | ||
}) | ||
|
||
const confirmMessage = includeRemoteType | ||
? `Yes, confirm migration from ${uniqueMigrationTypes}` | ||
? `Yes, confirm migration from ${uniqueMigrationTypes} to ${migrationEndType}` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
: 'Yes, confirm migration' | ||
|
||
return renderConfirmationPrompt({ | ||
|
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.
cc @isaacroldan