- π«π·France andypost
It needs re-roll and suggestion was to move to trait #2466933-46: Change $info array argument to system_get_module_admin_tasks() to $name β
- Status changed to Needs review
over 1 year ago 2:34am 23 May 2023 - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Reroll of MR !928. Used a patch as I don't have permission to rebase it on 11.x, and creating a new MR and losing the code comments is probably more confusing for reviewers.
I replaced usage of
ModuleHandler::getName()
as there is an issue to deprecate that in favour ofModuleExtensionList::getName()
.The existing deprecation for passing a string instead of an array to
system_get_module_admin_tasks()
is no longer needed as we are deprecating the whole function. Removed this and the corresponding deprecation test. - last update
over 1 year ago 29,387 pass, 2 fail - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Forgot to replace a usage of
system_get_module_admin_tasks()
and removed an unrelated change. - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Remaining tasks:
- Add tests for the new services
- Consider renaming to
\Drupal\system\ModuleAdminLinkHelper
and\Drupal\user\ModulePermissionsLinkHelper
- Consider using
\Drupal\Core\Cache\MemoryCache\MemoryCache
to keep the ability to flush the cache externally
The last submitted patch, 29: 3038971-29.patch, failed testing. View results β
- Status changed to Needs work
over 1 year ago 9:21am 23 May 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Test is failing because link change from
/admin/people/permissions/module/locale
to/admin/people/permissions#module-locale
. Seems like a valid fail? - Status changed to Needs review
over 1 year ago 9:58am 23 May 2023 2:29 2:00 Running- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Looks like this was older than the module specific permissions page?? https://www.drupal.org/node/3223123 β
The last submitted patch, 28: 3038971-28.patch, failed testing. View results β
The last submitted patch, 33: 3038971-33.patch, failed testing. View results β
- last update
over 1 year ago 29,397 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Fix missing
$name
arg togetModulePermissionsLink()
- last update
over 1 year ago 29,399 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
- Renamed to
\Drupal\system\ModuleAdminLinkHelper
and\Drupal\user\ModulePermissionsLinkHelper
- Wrote kernel tests for the new services
- Renamed to
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Remaining task:
- Use
\Drupal\Core\Cache\MemoryCache\MemoryCache
to keep the ability to flush the cache externally
- Use
- last update
over 1 year ago 29,399 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Fixes:
- Use
\Drupal\Core\Cache\MemoryCache\MemoryCache
to keep the ability to flush the cache externally
- Use
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Updated the IS and CR
- π«π·France andypost
+++ b/core/modules/user/src/ModulePermissionsLinkHelper.php @@ -0,0 +1,61 @@ + if ($this->accessManager->checkNamedRoute('user.admin_permissions.module', ['modules' => $module])) { + $url = new Url('user.admin_permissions.module', ['modules' => $module]);
this is the only reason to keep it separate module/service (usage of user's module route)
But I think it could be implemented in system module's service just checking the route presence
- π«π·France andypost
One more typo
+++ b/core/modules/help/tests/src/Functional/HelpTest.php @@ -137,8 +137,11 @@ protected function verifyHelp($response = 200) { - $admin_tasks = system_get_module_admin_tasks($module, $info['name']); + $admin_tasks = \Drupal::service('system.module_admin_links_helper')->getModuleAdminLinks($module); + if ($module_permissions_link = \Drupal::service('user.module_permissions_link_helper')->getModulePermissionsLink($module, $name)) {
it should use
$info['name']
instead of$name
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
But I think it could be implemented in system module's service just checking the route presence
Ah ok. Not sure what service provides that?
- last update
over 1 year ago 29,376 pass, 2 fail - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
The last submitted patch, 45: 3038971-45.patch, failed testing. View results β
- last update
over 1 year ago 29,399 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Random fail
- Status changed to RTBC
over 1 year ago 10:47pm 29 May 2023 - πΊπΈUnited States smustgrave
Reviewing #45
Deprecation appears to be up to date
Good test coverage
Reviewed the change record, the example was very useful and imagine will help those update later.LGTM.
- last update
over 1 year ago 29,403 pass - last update
over 1 year ago 29,404 pass - last update
over 1 year ago 29,413 pass 21:07 17:03 Running- last update
over 1 year ago 29,430 pass - last update
over 1 year ago 29,438 pass - last update
over 1 year ago 29,439 pass - last update
over 1 year ago 29,447 pass - last update
over 1 year ago 29,450 pass, 1 fail The last submitted patch, 45: 3038971-45.patch, failed testing. View results β
- Status changed to Needs review
over 1 year ago 11:57pm 15 June 2023 - last update
over 1 year ago 29,475 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Fix missing service aliases.
- Status changed to RTBC
over 1 year ago 12:58am 16 June 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
I think it safe to put this back to RTBC
- last update
over 1 year ago 29,501 pass 6:08 2:39 Running- last update
over 1 year ago 29,510 pass - last update
over 1 year ago 29,555 pass - last update
over 1 year ago 29,555 pass - last update
over 1 year ago 29,561 pass - last update
over 1 year ago 29,567 pass - last update
over 1 year ago 29,573 pass - last update
over 1 year ago 29,803 pass - last update
over 1 year ago 29,803 pass - last update
over 1 year ago 29,804 pass - last update
over 1 year ago 29,806 pass - last update
over 1 year ago 29,813 pass - last update
over 1 year ago 29,816 pass - last update
over 1 year ago 29,817 pass - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass The last submitted patch, 50: 3038971-50.patch, failed testing. View results β
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,824 pass - last update
over 1 year ago 29,829 pass - Status changed to Fixed
over 1 year ago 1:04pm 21 July 2023 - π¬π§United Kingdom catch
+++ b/core/modules/system/src/Controller/AdminController.php @@ -18,14 +20,42 @@ class AdminController extends ControllerBase { + + /** + * The module permissions link service. + * + * @var \Drupal\user\ModulePermissionsLinkHelper + */ + protected ModulePermissionsLinkHelper $modulePermissionsLinks; +
This shows up a general issue that we have dependencies on user module in system module, and dependencies on system module in.. a lot of things but probably also including user.
It might make sense at some point to move the admin ui building out of system module into a system_ui module that's just responsible for building admin pages. That module could then depend on system and user without issue.
There's no workaround though that I can think of except for making that third module, so committed/pushed to 11.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 5:29am 10 September 2023