-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
FIX #25856 / Group Ordered Products report by SKU #25858
FIX #25856 / Group Ordered Products report by SKU #25858
Conversation
Hi @lbajsarowicz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
The change makes sense for me. Though I'd add it to 2.4, not to 2.3 because:
|
@@ -596,6 +596,9 @@ | |||
<index referenceId="SALES_ORDER_ITEM_ORDER_ID" indexType="btree"> | |||
<column name="order_id"/> | |||
</index> | |||
<index referenceId="SALES_ORDER_ITEM_SKU" indexType="btree"> |
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.
@lbajsarowicz could you provide MySQL EXPLAIN
for queries which use this table before and after adding the index for SKU column?
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.
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.
As a result - it's fine to remove the index.
cb2ea46
to
840cec9
Compare
Squashed changes, removed index. Final solution does not need any architectural changes. |
@buskamuza @joni-jones Can I have your attention? |
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.
Go for me
✔️ QA passed |
In my personal opinion - it's really nice that @engcom-Echo wanted to cover change with tests, but it's just the block of concrete to the implementation: Tests provided does not test outcome, but only implementation and this is not bringing any value, except blocking further changes without changing also Unit Test. |
@engcom-Echo Thanks for tests - these look really great! |
Hi @aleron75, thank you for the review. |
Hello @engcom-Echo I approved the changes but a test still fails, can you please check it out? Thank you! |
Hi @aleron75. Thank you for your comment. I try to do it. |
Hi @aleron75, thank you for the review. |
✔️ QA passed |
Hi @lbajsarowicz, thank you for your contribution! |
Description (*)
PR fixes the issue with multiple variations of the same product being reported as a single product.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
The additional index was added to reduce the overhead.
Contribution checklist (*)