Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Sep 2014 at 18:54 UTC
Updated:
26 Apr 2015 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
plachComment #2
berdirHere's a first patch for this, tested with #2336895: Allow entity type and field storage definition objects to be compared for definition equality, works great there, didn't test yet if it has undesired side effects yet. Also not quite sure where the right place for this check is.
Comment #3
berdirWrong reference, I meant #2261669: Slow query in NodeRevisionAccessCheck.
Comment #5
berdirNice, there's a test already, just have to update that because it works now :)
Comment #6
plachInstead of repeating the logic, shouldn't we fix
::requiresEntityDataMigration()to ignore index changes?Comment #7
berdirWe discussed this a bit in IRC, here's what I came up with. A new helper method for the first three conditions that we can use from both methods.
Interdiff is almost as big as the patch and not very useful I think.
Comment #8
yched commentedLooks reasonable, but I'll leave it to @plach to RTBC
Comment #9
plachLooks good, thanks
Comment #10
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed b43bf88 and pushed to 8.0.x. Thanks!