Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2014 at 16:54 UTC
Updated:
20 Jul 2018 at 02:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xjmIt seems like this should maybe be a beta deadline. What would the implications be of changing this between beta1 and beta2? (What changes would contrib code have to make, if any?)
Comment #2
yched commented@xjm: right
Comment #3
yched commentedAlso, er - I won't be able to code for the next 10-ish days, so... any takers ? :-)
AFAICT, this shouldn't be much more than a class rename in PHPstorm (yeah, famous last words...)
Comment #4
andypostlet's see how phpStrom rename works...
PS: pushed to
sandbox/yched/1736366.git/2315237-fd2bfdbranchComment #8
andypostMissed file rename in previous patch
Comment #10
andypostshould fix most of failures
also renamed
FieldDefinitionTest.php => BaseFieldDefinitionTest.phpaccording class renameComment #12
andypostmerge HEAD
Comment #13
andypostre-roll
Comment #14
codekarate commentedAt TCDrupal Sprint, going to review this patch!
Comment #15
codekarate commentedWas not able to fully review this, but grep did turn up a few possible missed changes.
./core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php: $id_definition = $this->getMockBuilder('Drupal\Core\Field\FieldDefinition')
./core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php: $bundle_definition = $this->getMockBuilder('Drupal\Core\Field\FieldDefinition')
./core/lib/Drupal/Core/Field/FieldItemInterface.php: * @see \Drupal\Core\Field\FieldDefinition
./core/lib/Drupal/Core/Field/FieldItemInterface.php: * @see \Drupal\Core\Field\FieldDefinition
Even after these changes, this patch will still require some additional review.
Comment #16
andypostHEAD is moving, fixed #15
Comment #17
codekarate commentedThis all looks good to me. All instances of FieldDefinition have been changed to BaseFieldDefinition, all tests pass, and everything else seems to check out.
Comment #18
alexpottShould rename FieldDefinitionTestBase to BaseFieldDefinitionTestBase since this can only test BaseFieldDefinition's
Comment #19
xjmRenaming the test base class is probably a good, straightforward new contributor task.
Comment #20
daggerhart commentedI'm going to give this a shot.
Comment #21
daggerhart commentedI attempted to rename FieldDefinitionTestBase to BaseFieldDefinitionTestBase according to #18. Attached is interdiff and full patch.
Comment #22
daggerhart commentedComment #24
daggerhart commentedAnother attempt to rename FieldDefinitionTestBase to BaseFieldDefinitionTestBase according to #18. Attached is interdiff and full patch.
Comment #25
andypostmerged HEAD, fixed comment for base test class + #21 +#24
@daggerhart to reduce the patch size with git config:
More info is here: https://www.drupal.org/documentation/git/configure
Comment #26
chrischinchilla commentedUpdating issue summary at TC Drupal camp… In progress…
Comment #27
chrischinchilla commentedComment #28
chrischinchilla commentedComment #29
alexpottUpdated issue summary since #25 rolled the patch with the correct git config.
Note this patch conflicts majorly with #2283977: Create a new ConfigEntity type for storing bundle-specific customizations of base fields
Comment #30
alexpottCommitted 8fe8142 and pushed to 8.0.x. Thanks!
Comment #32
alexpottWe've got a few CRs to update...
https://www.drupal.org/list-changes/published/drupal?keywords_descriptio...
Comment #33
yched commentedYay! Thanks @andypost!
Comment #34
andypostUpdated:
https://www.drupal.org/node/1806650
https://www.drupal.org/node/1888646
https://www.drupal.org/node/2031221
https://www.drupal.org/node/2111871
https://www.drupal.org/node/2186583
https://www.drupal.org/node/2236285
no other mentions found.
Comment #36
jibranFieldDefinitionis making a comeback in #2935932: Add a FieldDefinition class for defining bundle fields in code..