-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Backport] 20434 consider url rewrite when change product visibility attribute #21977
Conversation
Hi @VitaliyBoyko. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @rogyar, thank you for the review. |
✔️ QA passed |
The pull request is causing performance degradation on 2.2-develop branch
The degradation is caused by an additional observer to |
Hi @VitaliyBoyko , do you have any progress on this? |
Hi @sidolov |
@kandy can you please take a look if the PAT failure can be approved for this PR? |
@magento run all tests |
Closing as corresponding 2.3 PR needs to be reverted: it introduced incorrect URL Rewrites behavior. Correct behavior taking into consideration Piotr Kaminsky comment is being implemented in #23275. |
Hi @VitaliyBoyko, thank you for your contribution! |
Original PR: #20774
Description (*)
Has been implemented observing the saving attribute via mass action, creating/deleting URL rewrites appropriately on the product visibility attribute change.
For more details see the issue (#20434).
Fixed Issues (if relevant)
Manual testing scenarios (*)
CASE 1:
Step 1. Create a product with the following URL (or any of your choice): « mon-produit-de-test » - Visible product (catalog, search)
Step 2. Create a second one with the same values but invisible individually then URL « mon-produit-de-test »
Step 3. Change visibility of the second product to visible via mass action.
The Url Key exist exception should be thrown.
CASE 2:
Step 1. Create a product with the following URL (or any of your choice): « mon-produit-de-test » - Visible product (catalog, search)
Step 2. Set visibility attribute to invisible via product grid mass action
Product URL rewrite should be removed.
CASE 3:
Step 1. Create a product with the following URL (or any of your choice): « mon-produit-de-test » - Not visible
Step 2. Set visibility attribute to visible via product grid mass action
Product URL rewrite should be created.
Contribution checklist (*)