Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu_link_content.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2015 at 15:07 UTC
Updated:
19 Sep 2015 at 15:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhedstromComment #2
wim leersGreat catch!
Comment #3
jhedstromThis might explain part of the issue. Our hierarchy test is never run. Attached adds this test back, but it is currently failing.
Comment #4
wim leersLOL!
Comment #5
tim.plunkettNice. This is due to #2104123: Consolidate test methods in MenuRouterTest
Comment #7
jhedstromThis gets the test down to 1 fail (and no fatal errors), and I'm not sure if the remaining fail is actually correct or not. If we can get this green, it should probably be spun off into a separate issue rather than wait on a fix for this issue.
Comment #8
jhedstromI added #2479819: Menu hierarchy tests are not being run and am going to move this patch there, since I don't think getting these tests back in will really address this issue.
Comment #9
jhedstromComment #11
jhedstromThis test illustrates the failure. The issue has to do with menu items only being set to 'rediscover' if the uri begins with
internal.Comment #12
jhedstromPatch above had an unnecessary call to set the 'rediscover' field.
Comment #13
jhedstromMaking this change resolves the issue, but I'm guessing it is not the ideal fix.
Comment #14
jhedstromThis fix sets rediscovery for all (I think) possible internal uris.
Comment #17
grendzy commentedLooks good. These 3 URI schemes match what's defined in \Drupal\Core\Url::fromUri.
Comment #18
xjmI've just committed #2479819: Menu hierarchy tests are not being run, so triggering a retest here just to be sure.
Comment #19
catchI think we were specifically trying to avoid rediscovery for entity references - might need to check the issue history and/or profile what happens with this change.
Comment #20
tim.plunkettComment #21
dawehnerSounds like another duplicate of #2468713: Internal/custom menu links force-reset to the top of their menus on cache rebuild
This fix is certainly wrong, because route | entity already got discovered, we know their routing information. Its probably just the MenuLink code which is wrong.
Comment #22
dawehnerLet's try out a test only patch.
Comment #23
dawehnerLet's commit this test only patch, more test coverage is always good but we don't need the actual bug fix.
Comment #24
alexpottThis can't be a critical anymore.
Comment #26
alexpottCommitted 9dd19b4 and pushed to 8.0.x. Thanks!
Comment #27
alexpottComment #28
dawehnerFair point
Comment #29
sumitmadan commentedCool, Not bug anymore. :)
Comment #30
alexpottAdding @sumitmadan to credit.