Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Mar 2016 at 00:38 UTC
Updated:
16 Feb 2024 at 16:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gapplePatch, with some work based on #2469567: Entity operations for terms are hardcoded in taxonomy terms's overview page
Comment #3
gappleComment #6
effulgentsia commentedComment #16
quietone commentedLooks like this still needs to be done. And this is not a bug, changing to a task.
Comment #17
quietone commentedThis should be NW
Comment #18
immaculatexavier commentedComment #19
immaculatexavier commentedRerolled against #2
Comment #20
immaculatexavier commentedFixed custom command line against #19
Comment #22
medha kumariReroll the patch #20 with Drupal 9.5.x
Comment #24
ameymudras commentedDid try to review the patch, but not able to replicate the scenario correctly. Can someone provide testing steps here
Comment #26
tim-dielsI tried latest patch #22 which is completely wrong and untested. So next time @medha-kumari I suggest you test the patch before submitting. Going to hide patch from #22.
I tried patch #20, which did also not work on latest 9.5.x.
This seems to be related due to changes between older versions and 9.5.x.
Going to hide patch #19 also as they are re-rolled in #20
I'v re-rolled the patch #20 to 9.4.x/9.5.x and tested if its working like it should.
Steps to reproduce:
Steps to test:
The scenario could be different depending on the use case.
For me the use case was that the Layout contextual link was not shown after installing Layout Builder Operation Link
Or you can add or alter contextual links yourself with hook_contextual_links_alter().
I don't have any Drupal 10 website running at the moment where I can test this and being short on time to set one up.
Also not really sure how to tackle this then. Should we create a patch for 10.x and port this to 9.x?
Anyone with more experience could shine a light?
Comment #27
Janvi Dasani commentedAdded patch against #26 in 10.1.x
Comment #29
gaurav-mathur commentedComment #30
gaurav-mathur commentedHi based on #27 i have Re-roll the patch and tested on Drupal 10.1.x
adding screenshot for the reference.
Kindly review patch
Thank you.
Comment #32
mohit_aghera commentedAdding a test case to validate the changes made in #26
Also, added test-only patch to replicate the scenarios.
@gaurav-mathur @Janvi Dasani:
We really don't need to re-roll the patch for 10.1.x since the patch for 9.5.x is cleanly applied on 10.1.x as well.
I suggest when you do the re-roll, please add a re-roll diff as well.
Here is the guide to generate the diff of re-roll.
That helps everyone to get more idea about the difference.
I am going to hide patch in #27 and #30 since those are incorrect reroll and not required. Feel free to enable display again if you see those are not applied correctly.
Comment #34
prasanth_kp commented#32 Patch Applied on
10.1.x-dev and it fixes the issue.
Comment #35
smustgrave commented#1956134: Provide helpful editing links on "admin/structure/block" for deriver blocks (menu, views, block content, etc.) is doing something very similar.
getOperations() {1. Should be typehinted as a new function
getResetRoute()2. ditto
Typehint should be added for new functions in all spots.
Very nice work though!
Comment #36
smustgrave commentedOh will need a change record also.
Comment #37
mohit_aghera commented- Added type hints in the necessary methods.
- Added a change record here https://www.drupal.org/node/3338898 (first one from me 🎉)
Tests are passing on local.
Comment #38
smustgrave commentedThank you!
Comment #39
catchOverall looks good, but a couple of nits:
This is missing phpdoc.
OK it is because the interface method is added here. 1-1 rule so method addition is fine.
Should this todo be resolved by this issue?
Comment #40
pooja saraah commentedAddressed the comment #39 point 1
Keeping it in NW to address other point in #39
Attached patch against Drupal 10.1.x
Comment #41
mohit_aghera commented- Attempting to fix the third suggestion in comment #39
Pulling translate link from operations.
I run all the test cases of `menu_link_content` module on local and those are still passing.
Comment #43
mohit_aghera commentedMoving back to Needs review since last failure was un-related and was from CkEditor5 module.
I triggered re-test and it is passing now.
Comment #44
catchBoth of those look good!
Comment #45
quietone commentedI did some formatting and minor text changes to the Change record.
Comment #46
catchCommitted f693212 and pushed to 10.1.x. Thanks!
Comment #48
catchComment #49
gappleCR published
Comment #51
berdirThere's a subtle API change here that broke a test in token module. Unlike the hardcoded logic before, the list builder checks access and doesn't return the edit route if the current user doesn't have access to it. The token tests didn't test this token with a logged in user, see #3360831: Fix test fail on Drupal 10.1.
Comment #52
rkollerI am leaving a comment for reference and awareness. During today's usability meeting #3420206: Drupal Usability Meeting 2024-02-16 we were discussing #3387665: Warn user when entity delete will cause menu item re-parenting. During the testing we've noticed the following issue i've created a followup issue for: #3421998: Menu links created by a view have a visually and functionally broken delete option. During the meeting we've tested on a install of Drupal 11.x. While writing up the followup I've tested on a install of Drupal 10.1.0 - the problem already existed there as well.