-
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
Remove print extension uniqueness validation #4232
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
512aecf
to
a4562bd
Compare
Coverage report
Show files with reduced coverage 🔻
Test suite run success1787 tests passing in 813 suites. Report generated by 🧪jest coverage report action from a3be938 |
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
/snapit |
🫰✨ Thanks @alfonso-noriega! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/cli@0.0.0-snapshot-20240725140404
|
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.
🔥
Remember to remove this type as well
a4562bd
to
f3759f0
Compare
f3759f0
to
a3be938
Compare
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.
I'm good with removing the validation but it would mean they can still dev
an app with duplicated print targets even if the backend validation fails. Should we actually be failing the dev
process when an error happens when attempting to update the extension version? This would allow us to remove duplicated front end validation on the various Hosts to account for the dev flow and keep all validation on the backend. For example, we have fallbacks for the name
being missing even though this can never be true for real extensions.
cc @isaacroldan
@vividviolet,this won't be an issue anymore once the new consistent dev and dev dashboard projects land as they will create a version on |
That's correct. @vividviolet, what would happen if you |
@alfonso-noriega It wouldn't be an issue in production but still an issue in development.
When you
It doesn't really crash currently because there's extra logic in Web to account for multiple print action extension (I believe we just use the first one). I would like to get rid of the extra logic if possible. We have extra logic for when the |
I think it makes sense to stop |
@isaacroldan should we take an action on this? I can extend this PR to fail on draft upload error or create a new one. But we should not merge this one until we get that merged. |
This PR seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. |
WHY are these changes introduced?
Remove print extension validation which should live in Core.
issue #1183
NOTE: This shouldn't be merged until core validation is merged in this PR
WHAT is this pull request doing?
Remove the validation as it is implemented in cor in this PR
How to test your changes?
1183-move-cli-validation-to-core
1183-move-cli-validation-to-core
Measuring impact
How do we know this change was effective? Please choose one:
Checklist