Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2013 at 13:55 UTC
Updated:
29 Jul 2014 at 23:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirThat might be a pretty serious problem actually, has anyone tested to clone/pull on Windows since this got in? I think it's not part of alpha4, right?
Comment #2
smiletrl commentedI get this problem, after git pull
http://snag.gy/qzRro.jpg
Comment #3
berdirYeah, thought so, that's not good, we might want to revert.
Comment #4
smiletrl commentedOr start to move field types?
I personally don't see much conflict with #2047229: Make use of classes for entity field and data definitions. But it would be definitely good to move the last two field types #2015687: Convert field type to FieldType plugin for taxonomy module and #2015689: Convert field type to typed data plugin for options module asap.
Comment #5
berdirThere might be fewer conflicts now, as it doesn't contain the list_type changes anymore, yes, so we could possibly just move them.
Comment #6
berdirOk...
Here's an attempt to remove those, let's see what the testbot has to say.
Two patches. The first just contains the necessary renames to get rid of the Field/field propblem. The second one also moves \Drupal\Core\Entity\Field and \Drupal\field\Plugin\Type\FieldType into \Drupal\Core\Field. Especially the second part is huge and changes all formatters and widgets *again*, as they all type hint on the classes that we are moving. And will conflict with quite a few patches.
The second patch also fixes all implements/overrides that use the old class names to @inheritdoc and removes a few now unnecessary use's.
Providing both as I have two commits anyway, we could go with the first one, but in a way, it would be backwards because the second would then touch most changes again and break things a second time.
Comment #8
berdirMissed on class and the parent:: thing seems like a PHPStorm move bug. Missed a few namespace changes in the big patch. This should do better.
interdiff for each patch, having fun with juggling commits around with git rebase...
Comment #9
berdirComment #10
amateescu commentedReview of the big one. It's just PHPStorm doing its thing..
.
:)
.
.
.
.
Comment #11
berdirYep, PHPStorm is storming.. no idea why it messes some up...
Comment #13
berdirA few fixes.
Comment #15
berdirFixed the last parent:: and two inline-namespace lines.
Comment #16
berdir...
Comment #17
amateescu commentedLooks good now.
Comment #18
alexpottCommitted 3ded221 and pushed to 8.x. Thanks!
Comment #19
yched commentedW00t! Awesome, thanks guys :-)
The plugin managers look like they're still exposed by field.module's services.yml ? (same for the cache bins they use)
Comment #20
berdir#2050835: Move Widget, Formatter, and FieldType plugin types to the Core\Field system already moved them to core.services.yml, field type was actually already there?
Comment #21
yched commentedOh, ok - sorry, still away from my coding env till tomorrow :/
Comment #22
smiletrl commentedHere's the change record https://drupal.org/node/2119163. It only tells the folders of discovery change.
Comment #23
yched commentedI don't think this should deserve a change notice, this is a D8/D8 change. Rather, existing change notices about widgets / formatters / field types as plugins should be updated ?
Comment #24
berdirYes, I'm working on updating those right now.
I thought a separate change notice was unnecessary at first too, but we started writing short change notices about HEAD to HEAD changes, just to get a notification out. Quite a few people are already working on porting/writing 8.x modules. I'll probably shorten it down a bit, things like where services are defined aren't relevant.
Comment #25
berdirDone, see #2050835-48: Move Widget, Formatter, and FieldType plugin types to the Core\Field system
Comment #26
yched commentedThanks a lot :-)
HEAD to HEAD change notifs: true, notifications are cool - I'm just a bit worried that people browsing the collection of change notifs have no way of telling the difference (7/8 changes vs 8/8 changes) ?