Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298646

Optionally show the machine names on the permission page

$
0
0

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.

B) Via an advanced setting somewhere (e.g. Add a "Development" field group at /config/people/accounts with a checkbox to opt-in) #57

C) Always display. Working patch in #47.

Remaining tasks

  1. Decide on an approach
  2. Update tests
  3. Update code
  4. Review
  5. RTBC
  6. 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.


Viewing all articles
Browse latest Browse all 298646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>