Closed (won't fix)
Project:
Drupal core
Version:
9.4.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
15 Dec 2011 at 12:37 UTC
Updated:
30 Sep 2022 at 08:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #0.0
xjmUpdated issue summary.
Comment #1
aspilicious commentedComment #2
aspilicious commentedPrevious patch should fail. Let's try this one...
Comment #4
aspilicious commentedHmmmm, let's try this one...
This doubles the rdf_mapping_load calls for each $comment. But it only does a lookup the second time.
Comment #5
aspilicious commentedOk previous one is crap
Comment #6
scor commentedyes, rdf_mapping_load() is tapping into cached data, so should have no performance impact.
Comment #7
xjm#5: 1371744-attachload-order-5.diff queued for re-testing.
Comment #9
xjmThis will need to be updated for PSR-0.
Comment #10
xjmComment #11
jibranreroll of #5
Comment #12
jibranupdated status
Comment #14
jibran#11: 1371744-11.patch queued for re-testing.
Comment #15
jthorson commented#11: 1371744-11.patch queued for re-testing.
Comment #16
jthorson commentedUpdating tags
Comment #17
fago#11: 1371744-11.patch queued for re-testing.
Comment #18
jjchinquistpatch fails on the newest dev version. Investigating whether or not this is still an issue.
Comment #19
jjchinquistAm not certain if there are any other sections - but the patch applies and checks out.
Comment #21
fagoThere is some unused whitespace.
The test fails, as we've got more storage controllers to take care of now. See the DatabaseStorageControllerNG which overrides this.
Comment #21.0
fagoUpdated issue summary.
Comment #22
aspilicious commentedLet's get this in
Comment #23.0
(not verified) commentedRemoving myself from the author field so I can unfollow. --xjm
Comment #24
berdir22: 1371744-22.patch queued for re-testing.
Comment #26
michaellenahan commentedComment #27
michaellenahan commentedI tried to reroll this patch but I hit the following problem.
in the patch in ...
core/lib/Drupal/Core/Entity/DatabaseStorageController.php
... there is a function ...
attachLoad()
... that doesn't seem to exist any more.
So I'm not sure exactly what replaces attachLoad().
Comment #28
michaellenahan commentedComment #29
berdirThat has moved to EntityStorageControllerBase::postLoad()
Comment #30
michaellenahan commentedComment #31
michaellenahan commentedHere's the patch.
Comment #32
vijaycs85Looks good to me, just a documentation question:
Does it worth adding a comment why TYPE specific should be first?
Comment #33
michaellenahan commentedTo be honest I'm not sure exactly *why* the hook_TYPE_load() needs to be called before hook_entity_load().
I agree it would be nice to know the exact reason. I think we're just making the change in this patch to make the code consistent. Elsewhere in code, the specific case comes before the general case.
In any case, I'm not sure that this is the correct place to document the order in which the hooks are run.
(Greetings from the Mannheim Sprint. tstoeckler your co-winner of the Prague Quiz is here and says hi. I'm originally from London but live in Germany now.)
Comment #34
michaellenahan commentedComment #36
michaellenahan commentedTry again.
Comment #39
lendudeRerolled, manual testing for the changed tests works.
Comment #41
lendudeUpdated failing tests to the new order. It's unclear to me why the KeyValueEntityStorageTest test the order of the functions called. Can't really find a reason for it, but maybe somebody else can.
Comment #44
lendudeComment #45
jsobiecki commentedComment #48
ajitsWorking on it now.
Comment #49
ajitsThe patch was not applicable. Re-rolling.
Comment #50
piyuesh23 commentedComment #51
ajitsComment #54
ajitsRerolling in a few.
Comment #55
ajitsRerolling
Comment #56
ajitscorrect status
Comment #57
disasm commentedI am removing the Novice tag from this issue because there are no clear tasks to complete.
I’m using this documentation as a source: https://www.drupal.org/core-mentoring/novice-tasks#avoid
Comment #58
disasm commentedComment #59
mgiffordNeeds re-roll.
Comment #60
ajitsComment #61
kostyashupenkoRe-rolled with auto merge
Comment #62
kostyashupenkoComment #74
lendudeThis came up as a daily target for #bugsmash.
Me and @longwave discussed this a bit and we couldn't come up with a way of how to do this without breaking BC. Since this is more an annoyance than something that breaks things it would probably not be worth it to break BC.
We figured this could be fixed if core were to move to events for the entity system, see #2551893: Add events for matching entity hooks.
Feel free to reopen this if you feel that this can be fixed while maintaining BC or if you feel this is important enough to break BC