-
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
Changing additional_images does not remove old images in csv import (Images not getting replaced) #33031
Comments
Hi @duckchip. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Golf. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Golf Issue Available: @engcom-Golf, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
This has been the default behaviour for quite some time. The PR you are referring to will not create duplicates if the images have the same name defined in the CSV import. If the images have different names, they will be added to the product. One solution would be adding a column to the CSV import which Magento can read during import and decide if existing images should be removed or just added to, e.g. image_behaviour. If value in the CSV for that row is "replace", then all existing images would be replaced. |
The commits somehow got lost or got refactored in in the develop branch. |
@Cloudy777, see d4931f79648, both the commit you mentioned as this one are part of #26713 Not sure if this is helpful? |
@hostsep Exactly in your commit _removeOldMediaGalleryItems was removed. Therefore the functionality of removing images by csv import doesn't remove old images anymore, right? |
Could be. But that method also didn't exist before the PR. If you do want that behavior, feel free to send in another PR with your suggestion 🙂 |
I have re-evaluated this issue and verified the same. Issue is reproducible on 2.4-develop. |
A couple of exercises have been done below
Hence there is a conflict in accepting it as a bug, and so waiting for PO confirmation on this! Thanks |
@magento I'm working on it |
Hi @ciprianmariuta! 👋 |
@magento add to contributors team |
Hi @ciprianmariuta! 👋 |
@magento I'm working on it |
Hi @duckchip , Thanks for your reporting and collaboration. Steps to reproduce
Thanks. |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-927 |
Preconditions (*)
Trying to update a product with a different set of additional images does not remove old images.
Steps to reproduce (*)
Expected result (*)
Actual result (*)
I thought that #26713 would have fixed the issue but the issue still exists. According to #14398 (comment) the issue should have been fixed in 2.4.2
This issue can also be reproduced on 2.3.6 and above.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: