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

Allow to disable track inventory for product without variants #5039

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Apr 24, 2023

Summary

We allow to disable track_inventory on the variant form, but not on the product form. This makes it impossible to change the value for sole products not having any variants, because the value is stored on the master variant.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

We allow to disable track_inventory on the variant form, but
not on the product form. This makes it impossible to change
the value for sole products not having any variants, because
the value is stored on the master variant.
@tvdeyen tvdeyen requested a review from a team as a code owner April 24, 2023 09:28
@github-actions github-actions bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem labels Apr 24, 2023
@tvdeyen tvdeyen added the backport-v3.3 Backport this pull-request to v3.3 label Apr 24, 2023
@kennyadsl kennyadsl added the backport-v3.4 Backport this pull-request to v3.4 label Apr 24, 2023
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tvdeyen! Not the best moment to merge this since we are releasing v4.0 and we would love it to only contain deprecation removals and breaking changes, but if we backport this to v3.4, this won't be a difference between v3.4.last and v4.0, so I think we can go ahead.

We actually delegate the value to the master variant
and most stores will already have the translation present.
@kennyadsl kennyadsl added type:bug Error, flaw or fault backport-v3.2 labels Apr 26, 2023
@github-actions
Copy link

💔 Some backports could not be created

Status Branch Result
v3.2 Backport failed because of merge conflicts
v3.3
v3.4

Manual backport

To create the backport manually run:

backport --pr 5039

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v3.3 Backport this pull-request to v3.3 backport-v3.4 Backport this pull-request to v3.4 changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem type:bug Error, flaw or fault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants