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:01 UTC
Updated:
22 Oct 2014 at 15:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
temoor commentedtaxonomy_term_load_multiple() have separate task #2010138: Remove taxonomy_term_load_multiple() in favour of \Drupal\taxonomy\Entity\Term::loadMultiple(). , so isn't included in patch.
Comment #2
Michael Hodge Jr commentedAs with the other issues similar to this, i've applied the patch, grepped the code and can confirm everything looks good.
Comment #3
alexpottWe should be injecting the storage here. The plugin needs to implement
ContainerFactoryPluginInterfaceAs above
As above
Comment #4
ashutoshsngh commentedFind attached with changes mentioned above.
Comment #6
ashutoshsngh commentedComment #7
emclaughlin commentedLooks good to me! Nothing is obviously broken that I could find after applying it.
Comment #8
temoor commentedBut there's no difference between patches in #1 and #6, or am I missing something?
Edit:
Actually it fixes this missed call
But there are no changes regarding #3
Comment #9
temoor commentedAdded changes according to #3
Comment #10
roderikTagging for Amsterdam. This is for an experienced PHP coder but novice contributor. While reviewing / checking if this still covers all calls, you will learn about Drupal's dependency injection with a practical example (which is this patch). If you set this is RTBC, feel free to comment about how and why you came to the conclusion.
Comment #11
finn lewisI will start reviewing the patch and ensure that it fixes the issue. (at the code sprint in Amsterdam)
Comment #12
finn lewisPatch fails to apply against current D8 core head.
I'll see if I can re-roll and test.
Comment #13
finn lewisIt looks like core taxonomy.module code has moved on since 27th August, for example,
taxonomy_term_load_parents() is now
so my (possibly incorrect) assumption is that the changes in the original patch to the taxonomy.module file are no longer required.
it looks like the new line returns the parents without calling Term::loadMultiple($tids).
I am now running the taxonomy tests locally and hope to post a re-rolled patch shortly.
Comment #14
finn lewisI have rerolled the patch from #9 above, removing the changes to taxonomy.module functions as mentioned in #13.
I have run the tests for the taxonomy suite under Drupal\taxonomy\Tests and all the tests pass apart from one.
The test that fails is Drupal\taxonomy\Tests\TaxonomyImageTest and this also appears to fail on vanilla Drupal 8 install, so I think this is not directly caused by this patch.
Rerolled patch attached.
Comment #15
jsobiecki commentedI'm working on review of that issue.
Comment #16
finn lewisJust added related issue of the failing Drupal\taxonomy\Tests\TaxonomyImageTest. I don't think this issue is causing that, but it may be related, and I prevents the whole suite of taxonomy tests from running.
Comment #17
jsobiecki commentedI don't confirm problem with test. On my local dev mentioned test went fine, so I think it's a matter of local env. From review perspective - it looks ok. All function calls were removed. Funtction was left, with @deprecated flag, so it's seem to be OK. Unit tests are all green, we are waiting for testbot results.
Comment #18
finn lewisThe patch in #14 passed the tests, suggesting that my related issue of failing Drupal\taxonomy\Tests\TaxonomyImageTest is a local issue.
Comment #19
roderik@finn.lewis / #13: agreed.
I just found an issue in the patch where it reverts $GLOBALS (recently changed) back to $_SESSION.
If you can review and you're OK with it, you can set status RTBC :)
Comment #20
finn lewis@roderik, thanks, I will review today and confirm.
Comment #21
finn lewisThe Patch in #19 applies cleanly to current HEAD and interdiff looks sound. I've also confirmed that the taxonomy tests still pass, but I guess that's what the test bots are for!
Setting RTBC as advised by roderik in #19.
Comment #22
finn lewisComment #23
alexpottCommitted 1308c59 and pushed to 8.0.x. Thanks!