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

Update source items on config save #677

Merged
merged 3 commits into from Mar 19, 2018
Merged

Conversation

rogyar
Copy link
Contributor

@rogyar rogyar commented Mar 15, 2018

On saving the inventory configuration from Admin->Stores->Configuration->Catalog->Inventory we need to invalidate the inventory index

#632

*/
public function execute(EventObserver $observer)
{
$this->stockIndexer->executeFull();
Copy link

Choose a reason for hiding this comment

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

We discussed that we need to invalidate index instead of full reindex
Also, we need to use index registry
We have example in \Magento\InventoryIndexer\Plugin\InventoryApi\ReindexAfterStockSourceLinksDeletePlugin

@rogyar
Copy link
Contributor Author

rogyar commented Mar 19, 2018

@naydav thanks for the hint! I've changed the approach and added integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants