-
-
Notifications
You must be signed in to change notification settings - Fork 439
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 save mass_action event to db when saving stock item model #191
Conversation
@bob2021 Why did you close the PR? |
Sorry, I should have added a comment - I've made some mistakes in my understanding of how mass_action events are processed. I think this PR is probably ok but I wanted to double check it before anyone else spent time looking at it - I'll reopen if it looks ok. |
f12d40e
to
629846b
Compare
mass_action
index events when saving stock item model629846b
to
0613488
Compare
+1 for the idea (not tested) any update on this one? |
I am no longer involved with Magento development and I will not be contributing any further changes to this PR so I am closing it. |
I understand the situation but a simple statement that you are no longer involved in the project was enough without closing the PR, leaving it to the appreciation of others who are still active if your work so far can be useful OpenMage. |
68b58e2
to
c8fa765
Compare
I've solved the conflicts (hopefully correctly since this code is extremely old) and rebased to main. I think this PR is worth checking and testing, please some admins take a look at this. |
So, I took a better look at this and:
So, for the time being, I prefer to close it |
This is part of a group of PRs containing the changes discussed in issue #152
When a stock item model is saved independently of a product model (eg. during checkout) and 'Display Out of Stock Products' = 'No', the following happens:
catalog_product_attribute
catalog_product_price
catalogsearch_fulltext
The problems are:
This PR has been updated since I initially opened it, the original approach had the advantage that it indexed everything in one pass, but it was more complex and less backwards compatible. The original is here.
This PR keeps the mass_action event in memory instead of saving it to the database, and it only processes the mass_action if the stock status has changed.