Optionally show the machine names on the permission page

Created on 16 August 2012, almost 12 years ago
Updated 9 January 2024, 5 months ago

Problem/Motivation

Sometimes you know a machine name for a permission but can't find it on the permissions page (mismatch, translation, etc).
It'd be nice to be able to easily search by machine name, but those strings are only available if you view source and really know what you're searching for. Not good for folks trying to develop custom or contrib modules and debug what they're doing, etc. See #53 for more.

Sadly, this is one of the most busy forms/pages in Drupal, so we don't always want to see that unless we need to.

Proposed resolution

Optionally display machine names.

A) Via an inconspicuous JS link to toggle (along the lines of "show row weights" vs. table drag) next to the existing toggle to show/hide the descriptions. #62-#64. See mockup in #71.

B)

C) .

Remaining tasks

  1. Update tests and code
  2. Review
  3. RTBC
  4. Commit

User interface changes

(Conditionally?) display machine names on the permissions page.
Exact mechanism TBD.

API changes

None.

Data model changes

None.

Release notes snippet

TBD.

Original report by @RoySegall

Hello everyone.
There was an idea that came up in the office - display the machine name of the user permission near to the check boxes.

This is good when we write a test or developing a module.

๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
User systemย  โ†’

Last updated 2 days ago

Created by

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024