Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
user system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
29 Aug 2011 at 00:12 UTC
Updated:
29 Jul 2014 at 19:55 UTC
Jump to comment: Most recent file

Comments
Comment #0.0
avpadernoInlined the screenshot.
Comment #1
Everett Zufelt commented+100
Other than not being able to find Roles when I first went looking in D7, I now have to do an extra click to get to it.
I know that I mentioned this to @Bojhan once, and he had what seemed at the time to be a reasonable explanation for the change, so tagging.
Comment #2
klonosI agree with this one too.
Comment #3
bryancasler commentedSame problems as #1
Comment #4
Everett Zufelt commentedComment #6
Everett Zufelt commentedForgot to change the menu item argument index... and that's what happens when you upload w/o testing :)
Comment #7
whitefluffy commentedI couldn't agree more with moving the Roles tab. The patch worked great for me, and the path "admin/people/permissions/roles" is nowhere to be found in the tree after patching. I'd say this is done.
Comment #8
Everett Zufelt commentedStill needs usability review.
Comment #9
Bojhan commentedI think this needs some testing, we have few to no data around how people use these screens. We also know that secondary navigation has serious visibility issues that might have contributed to this.
Comment #10
Everett Zufelt commentedMarked #1316942: Move "Roles" LOCAL_ACTION to MENU_TAB as duplicate
Comment #11
avpadernoThe problem is that, when users reach admin/people because they are looking for the page where they can add a new role, they find a page that lists all the registered users with a tab for the permissions.
That roles are related to users/people is clear, but it's not clear in which way roles are related to permissions; I would say that roles have permissions, not that permissions have roles. It would make more sense if "Permissions" were a sub-tab of "Roles."
To make a comparison, it would be like if, in admin/content, the "Comments" tab would be a sub-tab of "Content," and "Books" would be the default tab.
Comment #14
xjmAh. I have another duplicate of this around somewhere. Edit: #884086: Roles are quite hidden at the moment; closing that one as a duplicate.
"Roles" is not logically a child of "permissions." I think the explanation in #11 is quite apt. Also, as David Rothstein pointed out in the previous issue, you can specify roles that can view a block on block administration, and it has nothing to do with permissions. Similarly, access control modules will configure access rules for roles independently of permissions.
Usablity testing is a good idea, but I feel strongly that this is a very good change.
Comment #15
xjmHere is a reroll of Everett's patch for the new directory structure; no other changes.
Comment #16
xjmScreenshot of the UI with this patch applied:

Comment #17
dwwTherefore, RTBC. ;)
Comment #18
dwwBah, patch no longer applies (not that surprising). I'll do a quick re-roll. Stay tuned.
Comment #19
dwwComment #20
dwwBot's still happy. I'm not RTBC'ing my own patch here... it's really just xjm's patch with new line numbers and such. ;)
Comment #21
Bojhan commentedStill needs testing, we don't just test for visibility of one setting in a test - otherwise we can just put it as a button on the front page :). One thing more important, might make another thing less important.
I am open to letting it - without testing, as this is something we can easily test/adjust after the fact and we can't afford to hold up tiny issues like these atm.
Comment #22
dries commentedI think this is a big improvement and would like to commit it. The patch doesn't apply though.
The tests were moved to
/core/modules/user/lib/Drupal/user/.Comment #23
dries commented#19: 1262812-19.move-roles-to-primary-tab.patch queued for re-testing.
Comment #25
David_Rothstein commentedThe patch in #884086: Roles are quite hidden at the moment did:
List -> Permissions -> Roles
The screenshot above shows:
List -> Roles -> Permissions
Which order should they actually be in?
The first seems better to me since it puts the more frequently used page ahead of the less frequently used one (and also it's alphabetical :). However, the second is a little more logical in terms of the relationship between the tabs (users have roles, but roles have permissions).
Comment #26
Bojhan commentedDefinitly the first, useage triumps conceptual relationship in this case.
Comment #27
dwwuser.test got PSR-0'ed, that's why this no longer applied. Fixed that.
Also, the menu stuff was borked b/c we had left the MENU_DEFAULT_LOCAL_TASK in there (which we no longer need) and the Roles tab had a weight -5. Fixed that, too. ;)
Comment #28
klausiRerolled because of #935062: Change role id to machine name.
This patch can also be found in the platform-role-1262812-klausi branch of the platform sandbox http://drupal.org/sandbox/sun/1255586
Comment #29
xjmCodewise the patch is a straightforward replacement of the old path, and the web test coverage for role CRUD still works. I applied the patch locally and confirmed that no instances of the old path were missed. It would be good to have screenshots in the issue for the UI change, which klausi should be adding right about now. :)
Comment #30
klausiI also tested the patch manually and it works as advertised.
Screenshot before:

Screenshot after:

Comment #31
xjmThanks klausi!
Comment #32
dries commentedAsking for a re-test. I think the system tests have moved.
Comment #33
dries commented#28: 1262812-role-tab-28.patch queued for re-testing.
Comment #35
klausiRerolled.
I love you git. Truly.
Comment #36
Bojhan commentedlala, status
Comment #37
dwwAgreed with the RTBC. Patch is still good on visual inspection, bot is happy, and behold:
That pretty much says it all. ;) And if Bojhan says it's RTBC, I don't think this needs any usability testing...
Cheers,
-Derek
Comment #38
dries commentedCommitted to 8.x. Finally! Thanks for all the re-rolls along the way. :)
Comment #39
avpadernoThis is the patch for Drupal 7.
Comment #41
Bojhan commentedThis is a won't fix, checked it with Angie.
However, please do make a contrib module or something for this :)
Comment #42
Tor Arne Thune commentedComment #44
sunChanging menu router paths is definitely an API change, so at minimum, tagging this.
Not sure whether this needs a change notice. Perhaps we should have a generic/summarized one for all router paths that have changed between D7 and D8?
Comment #46
lpalgarvio commentedjust stumbled on this... was going to suggest it!
awesome =)
Comment #46.0
lpalgarvio commentedFixed the URL for the screenshot.