-
Notifications
You must be signed in to change notification settings - Fork 340
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
Move MSI support to separate module / package #3416
Comments
I am looking forward for this feature too. |
Hi guys, we might consider doing this in a near future or to provide at least a way to have a more loose coupling on MSI. We integrated this in the core due to the official statement of Adobe back in time which was : "MSI will replace the legacy CatalogInventory in an upcoming release". So we decided to anticipate this and 5 years later, CatalogInventory is still there and the entire Magento community is removing MSI when building a project :) |
I'm using this patch to remove MSI from Elasticsuite. Not the nicest way but it works.
|
Is your feature request related to a problem? Please describe.
A lot of Magento shops do not require the use of MSI (multi stock inventory) and could thus speed up the installation / deployment processes, reduce the overall disk consumption and improve performance by removing the whole MSI feature (roughly 78 packages).
Yireo provides a neat meta-package that helps removing MSI via the
replace
feature ofcomposer
, as can be seen here: https://github.com/yireo/magento2-replace-inventoryUnfortunately this does not work well in combination with the Smile Elasticsuite, since the latter requires the following MSI packages in its root
composer.json
:magento/module-inventory-sales-api
magento/module-inventory-sales
magento/module-inventory-indexer
These packages in turn have dependencies to other MSI packages, making it extremely hard to replace MSI when a shop does not actually need it. And since not all MSI packages can be removed the benefit is not as big as it could be.
Describe the solution you'd like
I'd suggest to move MSI support to a Smile package of its own. Said package can then be replaced in case MSI is not being used and thus the whole MSI overhead can be removed from shops. Also Yireo could be notified of the existance of said package and add it to the meta-package mentioned above, making it fully compatible to a rather usual setup (Magento + Smile Elasticsuite - MSI).
Describe alternatives you've considered
None
Additional context
The following packages make use of MSI classes / interfaces:
smile/module-elasticsuite-catalog
smile/module-elasticsuite-catalog-rule
The text was updated successfully, but these errors were encountered: