-
-
Notifications
You must be signed in to change notification settings - Fork 731
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 product SKU from product pages and report #12991
Conversation
b5fc7f6
to
bab7756
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.
Nice one. Thank you!
"ABC", Spree::Product.first.name.to_s, "1g", "1", "none", "10.0", "none", "Check", | ||
variant.sku, Spree::Product.first.name.to_s, "1g", "1", "none", "10.0", "none", "Check", |
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.
It's better to use the actual value in specs. Otherwise we may miss a bug, for example if the sku is nil and the report fails to print the sku then this test would still pass.
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.
Looks good. I agree with Maikel's point but let's go.
Hi @murjax, I've done some testing and here are my results. After staging✔️ The field for SKU on master level is gone: ✔️ The SKU of the variant is used in the Orders and Distributors report: ✔️ The variant SKU can still be edited on /products and on the /products/-ID-/variants/-ID-/edit pages. ResultsI couldn't find any problems with this PR. It's working as expected. 🥳 |
What? Why?
This removes the product SKU from the UI to remove ambiguity with the variant SKU.
Pages impacted:
/admin/products/
)/admin/products/:id/edit
)/admin/reports/orders_and_distributors
)What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates