Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

murjax
Copy link
Contributor

@murjax murjax commented Nov 20, 2024

What? Why?

This removes the product SKU from the UI to remove ambiguity with the variant SKU.

Pages impacted:

  • Product List Page (/admin/products/)
  • Product Edit Page (/admin/products/:id/edit)
  • Orders and Distributors Report. (/admin/reports/orders_and_distributors)

What should we test?

  1. Sign in as an admin.
  2. Create a new product (Products -> New Product).
  3. Editing a product to add variants with SKUs. (Products -> Edit -> Variants -> New Variant)
  4. Viewing and editing a product from the list page, including the variant SKUs.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

Copy link
Member

@mkllnk mkllnk left a 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!

Comment on lines -37 to +38
"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",
Copy link
Member

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.

@mkllnk mkllnk added the user facing changes Thes pull requests affect the user experience label Nov 21, 2024
Copy link
Member

@dacook dacook left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user facing changes Thes pull requests affect the user experience
Projects
Status: Test Ready 🧪
Development

Successfully merging this pull request may close these issues.

Fully remove SKU on product level
3 participants