Problem/Motivation
When running the d6_file migration it doesn't correctly skip files that have been deleted. They're still stored in the files table until you run cron.
Proposed resolution
Update the EntityFile destination to use the status property and determine how to handle temporary files vs permanent files.
Remaining tasks
Write patch and tests.
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2394157-8.patch | 8.03 KB | benjy |
| #7 | interdiff.txt | 1.93 KB | benjy |
| #7 | 2394157-7.patch | 163.93 KB | benjy |
| #5 | 2394157-5.patch | 6.1 KB | benjy |
| #1 | 2394157-1-PASS.patch | 1.8 KB | benjy |
Comments
Comment #1
benjy commentedPass and a fail patch attached.
Comment #3
chx commentedI am sorry but this is not a good idea. In theory it would be , in practice this leaves behind temporary files. There might be sites that use temporary files for whatever wacky purposes despite this is not officially sanctioned. I don't dare to risk it. We need to migrate all.
Comment #4
benjy commentedComment #5
benjy commentedHow about this approach, i've made some changes in the file process plugin and the EntityFile destination to handle temporary files.
Comment #7
benjy commentedNeeded to update the user picture file migration as well.
Comment #8
benjy commentedForgot to rebase before.
Comment #9
chx commentedLooks really great.
Comment #10
alexpottMigration changes are not frozen in beta. Committed f14ec03 and pushed to 8.0.x. Thanks!