Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Aug 2014 at 16:37 UTC
Updated:
25 Jan 2015 at 22:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
temoor commentedComment #2
Michael Hodge Jr commentedI've applied the patch, grepped the code, and can confirm everything looks as it should. Setting to RTBC.
Comment #3
temoor commentedReplaced #machine_name callback in VocabularyForm.
Comment #4
alexpottInject the storage into the plugins
This should be done through dependency injection too. See ActionFormBase for an example.
Comment #5
upchuk commentedPatch needs reroll and will attempt to fix the remaining issue raised in #4.
Comment #6
upchuk commentedThe entity_reference TermSelection plugin uses ReflectionFactory which does not use the container. Fix proposed in #2107243: Decouple entity reference selection plugins from field definitions
Comment #7
upchuk commentedFieldType plugins are using TypedData factories so no dependency injection. See #2053415: Allow typed data plugins to receive injected dependencies
Comment #8
upchuk commentedAttaching txt with reroll (please review), an interdiff since the reroll and the patch which contains the storage injections.
The patch is missing the storage injection for the following cases:
FieldType plugin mentioned in #7
TermSelection plugin mentioned in #6
VocabularyVid views argument plugin that I'm not sure it's being used. See #2048733: Taxonomy vocabulary contextual filters are missing
Comment #9
seanbPatch in #8 applied perfectly.
Found a extra call to entity_load('taxonomy_vocabulary') though, in /core/modules/views_ui/admin.inc on line 233.
Patch with that last change is attached.
Comment #11
upchuk commentedHey Sean,
Thanks for the patch, however it failed testing.
Can you please resubmit and include an interdiff of the work you put on top of #8 so we can see what you worked on?
I unassigned this issue now so you can assign it to yourself while you do that. After submitting the patch, you can unassign it again.
Thanks!
Comment #12
seanbSorry about that.. I'll do this later today!
Comment #14
seanbHere is the interdiff for #9.
Comment #15
rpayanmComment #18
jamesdixon commentedHere's my attempt at a reroll.
There were differences in bringing classes in via use since the last patch at the top of some files that needed resolving.
The patchutils interdiff was giving me the same error as reported here: https://fedorahosted.org/patchutils/ticket/23. Any good workarounds to that?
Comment #19
rpayanmLook fine for me :)
Comment #20
alexpottI think we should be injecting the vocabulary storage for these two.
Comment #21
rosinegrean commentedComment #22
skipyT commentedYou should rename this variable to $vocabulary_storage, we are injection here the storage object, not the interface
this one also should be $vocabularyStorage instead of $storage
lets rename this $vocabulary_storage
Comment #23
skipyT commentedOther stuff I missed before:
Here we need a comment like: "The Vocabulary storage."
The comment should be only: The vocabulary storage.
Comment #24
rosinegrean commentedComment #25
skipyT commentedComment #26
alexpottin core/modules/system/src/Tests/Entity/EntityCrudHookTest.php needs converting too.
Comment #27
rpayanmComment #28
pcambraRe-roll, this got in the middle: #2372855: Add content & config entity dependencies to views
Comment #29
aspilicious commentedComment #31
rpayanmrerolled
Comment #33
rpayanmrerolled
Comment #35
rpayanmrerolled
Comment #36
alexpottCommitted 3b53231 and pushed to 8.0.x. Thanks!
Beta evaluation is in the meta issue.
Comment #38
kim.pepperQuick follow up:
This patch added an unknown and unused interface
use Drupal\Core\TypedData\AllowedValuesInterfaceComment #39
larowlangood find
Comment #40
webchickCommitted and pushed follow-up to 8.0.x. Thanks!