Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 May 2018 at 16:19 UTC
Updated:
31 May 2018 at 12:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottComment #3
amateescu commentedWhy don't we go through the storage here and in all the other places which are changed to use
\Drupal::entityQuery()?Is there any reason for this change?
Comment #4
alexpott@amateescu thanks for the reivew.
Comment #5
alexpottBut I agree that we shouldn't use \Drupal::entityQuery in the EntityQueryTest kernel test - just feels wrong - so was using the entity query service but no reason not to fix it here considering we're changing it.
Comment #6
amateescu commentedRight, the entity test storage class doesn't exist anymore. In that case, the patch looks good to me :)
Comment #7
catchI think this should tell you to get the entity storage from the entity type manager service or similar explicitly, there's not really much to go on to figure out what to do instead in the message.
Comment #8
alexpottI copied the message from \Drupal\Core\Entity\Query\QueryFactory
I'll improve both and link to the CR.
Comment #9
alexpottUpdated the service deprecation and properly deprecated EntityQuery plus removed a couple of incorrect references from test docs.
Comment #10
martin107 commentedThere is a large amount of intricate changes here....
For what it is worth - I have taken the time to scan the patch slowly....
talking time to justify that all changes are equivalent, without any subtle buggy differences.
At the end, I could say every change was justifiable
So +1 from me.
Oh yeah and the idea behind the issue is good :)
Comment #11
amateescu commentedLooks good to me as well :)
Comment #13
martin107 commentedJust sending up the bat signal
Comment #14
alexpottRerolled.
Comment #15
tstoecklerDidn't we stop doing this in the class directly and move this to the constructor?
Comment #16
alexpott@tstoeckler that's for things that are scanned like plugins.
Comment #17
tstoecklerAhh, I didn't know that. Thanks for the clarification. Looks great!
Comment #18
catchCommitted 6f8f239 and pushed to 8.6.x. Thanks!