-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed configurable product price indexer issue #26810
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
Fixed configurable product price indexer issue #26810
Conversation
Hi @ananth-iyer. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
…cts-price-indexer-fix
@magento run all tests |
The same as for #24962 (comment) that fixes the same issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ananth-iyer,
Seems like your solution breaks some functionality. Could you review failing test results and adjust your solution?
@ananth-iyer will you be able to update your PR? |
Yes, I will sync the PR with |
…cts-price-indexer-fix
2dcd6e0
to
a87fa22
Compare
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ananth-iyer,
Unfortunately tests are still failing after your last changes. Could you fix them?
Sure, will check it soon. |
@magento run Functional Tests B2B, Functional Tests EE |
…cts-price-indexer-fix
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE |
2 similar comments
@magento run Functional Tests B2B, Functional Tests EE |
@magento run Functional Tests B2B, Functional Tests EE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔ Approved!
Finally, tests are passing
Hi @ihor-sviziev, thank you for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ananth-iyer I tested PR according scenario from related issue that should be fixed by these changes, but issue is still reproducible
Manual testing scenario:
-
Set
Price=10
on configurable product from mass action grid -
Run
cron:run
-
See the price from attributes in columns
price
andfinal_price
in the tablecatalog_product_index_price
-
Then save configurable product from admin edit page
-
See
null
value saved for price attribute incatalog_product_entity_decimal
-
Run
cron:run
-
Check columns
price
andfinal_price
in the tablecatalog_product_index_price
Result:
❌ See 0
saved in columns price
and final_price
for edited configurable product
❌ Still possible to save price
and for configurable product in catalog_product_entity_decimal
table
Could you take a look?
@engcom-Delta Set Price=10 on configurable product from mass action grid In Magento 2, as per my knowledge the price field is disabled on configurable product edit pages. So this issue is related to mass action functionality. This PR is related to indexing issues that take lot of time and price sorting issues on product listing page after migrating from Magento 1. So I think we have to skip price update if the product type in configurable for the mass action and we need to create a new issue for it. x Still possible to save price and for configurable product in catalog_product_entity_decimal table |
@engcom-Delta do we have the listed issues on 2.4-develop branch? If no - that might be a bit different issues |
@ihor-sviziev I was able to reproduce only #24953 on 2.4-develop from listed issues. And I tried this scenario because other issues from Related Issues (if relevant) list I was not able to reproduce @ananth-iyer Do you have information how to reproduce issue with negative number in |
@engcom-Delta Do you have information how to reproduce issue with negative number in min_price without migration magento from 1.9.4.2 to 2.4.x? We should remove the #24953 from this PR because it is related to Mass action page and product mass action functionality needs to get fixed. Indexing issue is fixed in this PR. While submitting this fix I never thought of mass action issue exists or not. |
Hello @ananth-iyer, |
@engcom-Hotel I have migrated the default M1 to M2 and found no issue there. But this issue occurs with the existing M1 project, here the admin adds price in configurable products by mistake. |
Hi @ananth-iyer, If there no steps to reproduce this issue w/o migration - I believe we can't accept such PR. What do you think about it? |
@ananth-iyer I am closing this PR now due to inactivity. |
Hi @ananth-iyer, thank you for your contribution! |
Description (*)
Configurable products price indexer save min_price in negative number i.e. -0.010000.
Related Pull Requests
Related Issues (if relevant)
Manual testing scenarios (*)
catalog_product_index_price
as per the screenshot attached the min_price is incorrect.Questions or comments
Contribution checklist (*)