- last update
about 1 year ago Patch Failed to Apply - last update
about 1 year ago Composer require failure - last update
about 1 year ago 81 pass, 3 fail - last update
about 1 year ago 83 pass - π³π±Netherlands idebr
Attached patch adds some additional changes to the test files to fix test failures.
-
mark_fullmer β
committed a1f663f2 on 6.1.x authored by
idebr β
Issue #3212820 by idebr: Upcast linkit profile in linkit.autocomplete...
-
mark_fullmer β
committed a1f663f2 on 6.1.x authored by
idebr β
-
mark_fullmer β
committed 90c27c0a on 6.0.x authored by
idebr β
Issue #3212820 by idebr: Upcast linkit profile in linkit.autocomplete...
-
mark_fullmer β
committed 90c27c0a on 6.0.x authored by
idebr β
- Status changed to Fixed
about 1 year ago 2:22pm 5 September 2023 - πΊπΈUnited States mark_fullmer Tucson
This change makes sense to me. Thanks for the clear explanation, and the updated test coverage! Merged into both the 6.0.x and 6.1.x branches.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 3:59pm 4 October 2023 - π©πͺGermany a.dmitriiev
This was actually a breaking change :) all the places in code where
linkit_profile_id
was passed to Url object are now broken - πΊπΈUnited States mark_fullmer Tucson
all the places in code where linkit_profile_id was passed to Url object are now broken
Thanks for reporting this. Can you clarify if you're talking about code within the Linkit module itself, or code which extends this module?
- π©πͺGermany a.dmitriiev
I meant the third party code in custom modules (maybe also there are contrib modules that use linkit as a dependency, but I don't know any).
- π©πͺGermany a.dmitriiev
I think this change desires at least change record and a big section on the main project page.
- Status changed to Needs work
about 1 year ago 9:52pm 4 October 2023 - πΊπΈUnited States mark_fullmer Tucson
I meant the third party code in custom modules (maybe also there are contrib modules that use linkit as a dependency, but I don't know any).
Thanks for clarifying. I honestly hadn't anticipated that there would be any 3rd party code that would extend Linkit in this way. Failure of imagination on my part. I agree that a change record would be a minimum thing to call out, but I'm leaning toward a more standard process of deprecating this before removing it altogether (in a new major version release)
- πΊπΈUnited States SamLerner
I just ran into this problem in my Drupal 10.1.4 site. Trying to add new menu items tries to load the
linkit_profile
slug in the autocomplete path, but it's namedlinkit_profile_id
in some custom code we had. This triggered the following error:Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("linkit_profile") to generate a URL for route "linkit.autocomplete". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 187 of core/lib/Drupal/Core/Routing/UrlGenerator.php). Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute('linkit.autocomplete', Object, Array, Array) (Line: 300) (...)
We can update our code, but it took us some time to figure out what was happening.
- Status changed to Needs review
about 1 year ago 8:33pm 5 October 2023 - last update
about 1 year ago 83 pass - πΊπΈUnited States mark_fullmer Tucson
We can update our code, but it took us some time to figure out what was happening.
Based on my reading of https://www.drupal.org/docs/8/api/routing-system/parameters-in-routes/pa... β , we can maintain the legacy route name
linkit_profile_id
while still using the automatic upcasting that this issue provides. The variable name will be less than ideal, but I'm okay with that to maintain backwards compatibility in custom code.Can someone who has experienced this issue in custom code test the attached patch? This should apply whether you're using 6.0.x or 6.1.x.
- πΊπΈUnited States SamLerner
@mark_fullmer tested the patch in #19 and it fixed the problem I was having earlier. Thank you!
We'll keep our updated code, but this patch will save some poor souls from WSODs.
- πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
Patch in Comment#19 worked for us too, thanks @mark_fullmer
-
mark_fullmer β
committed cb9da807 on 6.0.x
Issue #3212820 by mark_fullmer, SamLerner, trackleft2: Provide backward...
-
mark_fullmer β
committed cb9da807 on 6.0.x
-
mark_fullmer β
committed 2f77a656 on 6.1.x
Issue #3212820 by mark_fullmer, SamLerner, trackleft2: Provide backward...
-
mark_fullmer β
committed 2f77a656 on 6.1.x
- Status changed to Fixed
about 1 year ago 3:34pm 9 October 2023 - πΊπΈUnited States mark_fullmer Tucson
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States joegl
We ran into the same issue on 6.0.1:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("linkit_profile") to generate a URL for route "linkit.autocomplete". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 181 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
Confirming upgrade to 6.0.2 fixed this.
Thanks!