Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Apr 2013 at 21:10 UTC
Updated:
29 Jul 2014 at 22:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yched commentedPostponed on #1735118: Convert Field API to CMI
Comment #2
swentel commentedtagging
Comment #3
yched commentedUn-postponing.
Comment #4
swentel commentedActually, we test it for the body instance:
So I think we're good imo.
Comment #5
yched commentedThat's just for the upgrade path.
I think @xjm was thinking of the config import tests.
Comment #6
swentel commentedright, duh, I need to learn to read titles.
Comment #7
swentel commentedComment #9
swentel commentedRight, more fields, means more stuff to delete :)
Comment #10
smiletrl commentedNice job!
Some nitpicks though:^
FieldImportCreateTest.php:
I think here should be
This patch doesn't check $field_2 and $instance_2 before enabling field_test_config module.
It might be a good thing to add this multiple instances test in
// Add the coresponding entries to the current manifest data.This is not from the patch, but in the original code -- wrong word *corresponding*.
FieldImportDeleteTest.php:
I think you want $instance_id_2b to has a different bundle --
+ $instance_id_2b = "test_entity.test_bundle_2.$field_id_2";and $instance_id_2a has a different field id -- $field_id_2:)Any particular reason to delete these checks? In this test file, it uses
$this->installConfig(array('field_test_config'));to enable configuration, different fromin FieldImportCreateTest.php. I think it's necessary to add this check and for new field and instances in this patch.
Could be
$field_uuid_2 = entity_load('field_entity', $field_id_2)->uuid();, although I prefer this way$field->uuid^^Finally, while this patch creates a new field and two based different instances, I guess a second instance with a different bundle based on current field in these tests will be okay:)
Comment #11
smiletrl commentedPatch updated according to #10.
For 'uuid' in staging yml file, I used following code to generate them. Not sure I did it correctly.
Comment #13
smiletrl commentedFixed some bugs.
Comment #14
swentel commentedNeeds a reroll
Comment #15
yesct commentedtagging.
also, instructions if someone new wants to try it: http://drupal.org/patch/reroll
Comment #16
swentel commentedComment #17
swentel commentedThis is good to go btw, mine was just a re-roll.
Comment #18
swentel commentedManifests are gone as of #1998576: Make the config import process use full config trees again, so this needs work
Comment #19
swentel commentedAnd here's the reroll.
Comment #20
alexpottCommitted 939a8a8 and pushed to 8.x. Thanks!