- @hitchshock opened merge request.
- πΊπ¦Ukraine HitchShock Ukraine
@elimw it looks like a project-specific solution. Also, it doesn't cover the following cases:
- When we use other media types for migration - e.g. files.
- When the file wasn't mapped.
- Translations.
I provided another solution for that. We have the migrate_file_to_media_mapping mapping table, why not use it?
- Created event subscriber to add newly created media entities to the mapping table, so we will exactly to know which media matches the current file.
- For translation use file_id_lookup instead of the migration_lookup. Thus, we also solve this problem for translations. - πΊπ¦Ukraine HitchShock Ukraine
Tested the module after the fixes on the empty and real projects.
P.S. Keeping a ticket in review status to allow someone else to review it. If the task remains unchanged for 2 weeks, the solution will be automatically added to the dev branch.
-
HitchShock β
committed 5bf0b17f on 2.0.x
Issue #3208616 by HitchShock, elimw, aarnold101: Duplicate Files in...
-
HitchShock β
committed 5bf0b17f on 2.0.x
- Status changed to Fixed
over 1 year ago 10:10am 5 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.