-
Notifications
You must be signed in to change notification settings - Fork 247
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
Create a single point of stock data processing #19
Comments
This was referenced Dec 11, 2017
larsroettig
pushed a commit
to magento-techdivision/inventory-deprecated
that referenced
this issue
Jul 9, 2019
MC-17912: Added fix for strpos
mmansoor-magento
pushed a commit
that referenced
this issue
Dec 6, 2020
[Arrows] MC-33288: [2.4][MSI][MFTF] StorefrontLoggedInCustomerCreateOrderAllOptionQuantityConfigurableProductCustomStockTest fails because of bad design
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full context in documentation
[HLD] Inconsistent saving of Stock Data
Description
1. Unite logic in a single processing point
The logic of the following classes:
should be united in a single "processing" point. It could be a SaveInventoryProcessor class, like in the example below.
PAY ATTENTION: this logic is needed ONLY for BI (saving stock item data on product save). In proper way, we need to save StockItem only via StockItemRepositoryInterface
Also, we now save via stockregistry only for BI.
The processing logic of saving data via model and via product repository must be the same!
2. Move validation logic from ProductRepositoryPlugin to a separate class.
For example:
Also need to investigate about moving this logic in StockItemRepository
The text was updated successfully, but these errors were encountered: