Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2016 at 01:38 UTC
Updated:
23 Nov 2016 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edgewl2 commentedThis patch adds the necessary comments
Comment #3
heddnUpdated IS
Comment #4
mikeryanI'd like to see more precise wording.
Suggested text:
If you are using both this migration and d6_user_picture_file in a custom migration and executing migrations incrementally, it is recommended that you remove the fid mapping here to avoid potential ID conflicts.
Suggested text:
If you are using both this migration and d6_file in a custom migration and executing migrations incrementally, it is recommended that you remove the fid mapping from d6_file to avoid potential ID conflicts.
Comment #5
yogeshmpawarUpdated patch as per comment #4, also added interdiff.
Comment #6
mikeryanLooks good, thanks!
Comment #7
catchPer discussion in #2748609: [meta] Preserving auto-increment IDs on migration is fragile should we open an issue for d6_user_picture_file to 1. always run after d6_file if it doesn't already 2. bump the auto-increment ID before it runs?
Comment #8
heddnre #7:
1) this is already done.
2) I think this is part of the longer term solution. This is a quick-fix while we discuss better solutions. We discussed the general problem in #2748609: [meta] Preserving auto-increment IDs on migration is fragile at a recent migrate weekly meeting and this was the stop-gap issue that was opened while we discussed long-term fixes.
Comment #9
catchRight but I think bumping the auto-increment ID before the user picture starts is a different fix to bumping it after other ID-to-ID migrations run - it'd be specific to this one.
Comment #10
heddnI follow the logic about this being different. When I opened things, I opened two different issues. One for general entity_ids, and one for this specific issue with D6 user profile photos. See #2818157: Add comments to remove entity ids in migration for the other issue.
I don't think we disagree. Unless you think this issue here should do the bumping. I'd prefer to push the bumping ids off to a follow-up.
Comment #11
mikeryanI've added some thoughts on how exactly auto-increment fudging would work at #2748609: [meta] Preserving auto-increment IDs on migration is fragile. I don't think our future plans there really affect the advice we're giving here and how.
Comment #12
catchWe should add a specific child issue of that one for the 6.x user picture fix - it's not going to be handled by incremental migrations in general.
Comment #15
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!
Opened #2826047: 6-8 user picture migration must create new fids, which can conflict with fids used by other migrations because I think this specific issue needs tracking separately from the general one.