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

Don't show stock for on-demand inventory items #13064

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Jan 8, 2025

What? Why?

  • Closes #???

It seems that we have a bug around subscriptions and negative stock levels. It has not been filed on Github yet but is discussed on Slack:

While the details are not all confirmed yet, one confusing part is that on-demand products show negative stock levels on the inventory page. The UI was assuming that on-demand products don't have a stock level set. But we are tracking stock levels since Track (negative) stock for on-demand products and overrides #12726.

I'm a bit hesitant to present this fix because it could make investigation of the actual bug more difficult by hiding the stock level. Ideally, we would solve the subscription bug first but we don't have a confirmed description yet. So we may wait merging this until we started work on the subscription issue.

What should we test?

  • Visit the inventory page.
  • Have variants with overriding stock management.
  • Have on demand and stock controlled variants.
  • Stock controlled variants should show a stock level.
  • On-demand variants should not show a stock level.
  • Place an order for an on-demand variant so that its stock level becomes negative.
  • You can check the stock level on the products page by unticking on-demand without saving.
  • On-demand variants should still not show a stock level on the inventory page.

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

mkllnk added 2 commits January 9, 2025 10:06
We changed to tracking stock of on-demand items to be able to place
backorders. This is mostly hidden in the app but was still visible on
the inventory page. Now we are hiding that here, too.
@mkllnk mkllnk added the user facing changes Thes pull requests affect the user experience label Jan 8, 2025
@mkllnk mkllnk self-assigned this Jan 8, 2025
@mkllnk mkllnk marked this pull request as ready for review January 8, 2025 23:27
@mkllnk mkllnk changed the title Don't show stock for on-deman inventory items Don't show stock for on-demand inventory items Jan 9, 2025
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: Code review 🔎
Development

Successfully merging this pull request may close these issues.

1 participant