Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 May 2013 at 20:47 UTC
Updated:
10 Aug 2016 at 14:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedLet's see how this one fares with the testbot.
Comment #2
dave reidComment #3
amateescu commentedRerolled for #1620010: Move LANGUAGE constants to the Language class.
Comment #4
amateescu commented#3: 1996714-3.patch queued for re-testing.
Comment #5
fago#3: 1996714-3.patch queued for re-testing.
Comment #6
fagoPatch looks great to me already. Do we have test coverage on this update functions?
Comment #8
das-peter commented#3: 1996714-3.patch queued for re-testing.
Comment #9
amateescu commentedYep, this patch is tested by UserPictureUpgradePathTest.
Comment #10
yched commentedJust like I posted in #1965208: Convert TaxonomyTermReferenceItem to extend EntityReferenceItem,
In this specific case, though, I think we'll want "image field" to extend "file field" (that's what image.module's current implementations of hook_field_*() imply - just defer to the equivalent functions for file field).
Not sure whether it makes sense / is possible to go there right now, or whether this specific point should wait for #1969728: Implement Field API "field types" as TypedData Plugins, but in the end we'll most probably have ImageItem extends FileItem.
Comment #11
berdirThe reason I didn't do that initially is that's not completely true for the field item properties. Images don't have the display/description columns so I thought it would be a bit weird to extend but then remove those, at least in the current state of those classes, where they only define that and not much more.
But it will probably make more sense once these classes do more than just define the properties.
Comment #12
yched commentedMakes sense, works for me.
Comment #13
amateescu commentedYeah, I tried that in #1839066-10: Implement the new entity field API for the image field type, got overruled, didn't really care enough to argue further.
So.. everyone seems to like this patch, but not enough to rtbc it? :)
Comment #14
yched commentedSorry, don't count on me for reviews / RTBCs this week, very limited bandwidth :-(
Comment #15
swentel commented#3: 1996714-3.patch queued for re-testing.
Comment #16
swentel commentedThis is very straight forward, +1 from me too. RTBC when it comes back green.
Comment #18
amateescu commentedRerolled.
Comment #20
amateescu commentedI've no idea what #2001310: Disallow firing hooks during update changed so the image upgrade path doesn't work anymore, but since image depends on file, we can just do this instead.
Comment #21
amateescu commentedThis patch has been massacrated by #1818568: Convert files to the new Entity Field API, now I know why Berdir didn't want to rtbc it sooner :) YAR!
Comment #23
berdir#21: 1996714-21.patch queued for re-testing.
Comment #25
amateescu commentedRerolled for #2020677: file_field_prepare_view() should not delete items and not including the patch from #1965208: Convert TaxonomyTermReferenceItem to extend EntityReferenceItem this time.
Comment #27
amateescu commentedComment #28
effulgentsia commentedFor similar reason as #1965208-52: Convert TaxonomyTermReferenceItem to extend EntityReferenceItem, raising this to major.
Comment #29
berdir#27: 1996714-27.patch queued for re-testing.
Comment #31
amateescu commentedComment #32
berdir#31: 1996714-31.patch queued for re-testing.
Comment #34
amateescu commentedComment #36
amateescu commentedRerolled after #1969728: Implement Field API "field types" as TypedData Plugins and fixed those tests.
Comment #38
amateescu commentedThis should fix the upgrade path :) Also found some more references to 'fid' that needed to be replaced.
Comment #40
amateescu commentedReroll hell!
Comment #42
amateescu commentedThat was probably a merge conflict.. fixed :)
Comment #43
effulgentsia commentedThis looks fine, but why is it needed by this patch?
Earlier in the patch, file_field_schema() defines this as TRUE.
Comment #44
effulgentsia commentedThe feedback in #43 is really minor. Once it's addressed/answered, please feel free to RTBC without waiting for me (since I'm 8 hours behind Dublin time).
Comment #45
amateescu commentedGood catch in the schema, fixed :)
About the change in
getPropertyDefinitions(), that's because of the failures from #36. Basically, the typed data manager invokes a hook (data_type_info) which is now forbidded in update functions.Comment #47
ParisLiakos commented#45: 1996714-45.patch queued for re-testing.
Comment #48
berdirI'm very sorry, but this needs a re-roll because of a stupid comment fix in Tables.php, as that has been moved.
Comment #49
amateescu commentedSure thing ;)
Comment #50
effulgentsia commentedAwesome.
Comment #51
dries commentedCommitted to 8.x. Thanks.
Comment #52
berdirRemoving sprint tag.
Comment #54
gábor hojtsySwap to the right media tag.