Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 May 2016 at 19:45 UTC
Updated:
2 Jun 2016 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
skowyra commentedI'm at DrupalCon NOLA and am taking at look at this
Comment #3
marvin_b8 commentedComment #4
john cook commentedAfter applying the patch there is one more instance of using functional loading.
EntityViewDisplay::loadMultiple()can be used to load multiple entities.Comment #5
john cook commentedComment #6
snehi commentedDone.
Comment #7
john cook commentedUpdated summary.
Comment #9
john cook commentedThe following is missing from the top of
core/modules/image/src/Entity/ImageStyle.phpThat should fix the errors from the testbot as it states where to find the
EntityViewDisplayclass.Comment #10
snehi commentedI missed it.
Comment #11
john cook commentedAfter applying the patch from #10 there are no more calls to
entity_load()for entity_view_display entity types. The patch only addresses problems with this issue.Comment #12
john cook commentedComment #14
ashishdalviUnable to apply Patch. Patch re-roll needed.
I am working on patch re-roll.
Comment #15
ashishdalviAdding Rerolled Patch.
Comment #16
ashishdalviComment #17
john cook commentedAfter applying the rerolled patch in #15 there are no more calls to
entity_load*().The reroll and the original patch have the same number of files changed, insertions, and deletions, so nothing extra was added in the reroll process.
Comment #18
valthebaldIs there any difference between 2 patches?
Comment #19
catchCommitted 6b70606 and pushed to 8.2.x. Thanks!
Comment #21
bzrudi71 commentedI think this causes an exception on PG during tests...
Please see PG testrunner
[18-May-2016 19:09:15 Australia/Sydney] Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "number"Let's see, queued for PG testing...
Comment #22
valthebaldWhat exactly can break PG? The patch contains nothing about data types
Comment #23
bzrudi71 commented@valthebald right, actually it seems that the fails are caused by #1266748: Changing cardinality lower than highest existing delta causes data loss upon save instead. The failing test is ManageFieldsTest not ManageDisplayTest, my bad ;) Will leave a note over there...
Comment #24
valthebaldAwesome!
Comment #25
ashishdalvi