Wrap backtrace of UI warnings/notices in a details element

Created on 20 June 2020, over 4 years ago
Updated 4 February 2023, almost 2 years ago

Problem/Motivation

Having verbose error logging on is good for security as we see bad things soon, but screens full of backtraces are a PITA.

Which nudges us developers to develop without warnings and notices, which is bad and kills kittens.

Proposed resolution

Wrap backtraces in a details tag in UI error messages.

Remaining tasks

Usability review
Code review

User interface changes

Notices / Warnings are much more compact.

Before

After

API changes

None.

Data model changes

None.

Release notes snippet

If developer chooses to see verbose error messages in the UI, the backtraces are now wrapped in a details element.

✨ Feature request
Status

Needs work

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
  • Security improvements

    It makes Drupal less vulnerable to abuse or misuse. Note, this is the preferred tag, though the Security tag has a large body of issues tagged to it. Do NOT publicly disclose security vulnerabilities; contact the security team instead. Anyone (whether security team or not) can apply this tag to security improvements that do not directly present a vulnerability e.g. hardening an API to add filtering to reduce a common mistake in contributed modules.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • 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.

  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

Sign in to follow issues

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.71.5 2024