Created on 20 July 2024, 11 months ago

A Drupal 10 version of this module would be really useful!

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom matt b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @matt b
  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest

    Greetings! I started something new here:
    https://git.drupalcode.org/issue/text_formats_report-3462768/-/tree/3462...

    Simple for now but generates a report. I did NOT base off the original module. This does not have all the features of the original module but perhaps is a starting point going forward in the D10/11 space. I started a 1.x branch in this fork, but only the issue branch has the controller.

    Thanks for all your help and contributions @manuel-garcia! Please let me know your thoughts at your convenience.

  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest

    Instructions to use this branch/fork:

    In your project's composer.json "repositories" section, specify the fork as the package for "drupal/text_formats_report", after the "normal" drupal.org section:

        "repositories": [
            {
                "type": "composer",
                "url": "https://packages.drupal.org/8"
            },
            {
                "type": "package",
                "package": {
                    "name": "drupal/text_formats_report",
                    "description": "Provides overview of usage on text formats",
                    "version": "1.x-dev",
                    "type": "drupal-module",
                    "source": {
                        "url": "https://git.drupalcode.org/issue/text_formats_report-3462768.git",
                        "type": "git",
                        "reference": "3462768-drupal-10"
                    },
                    "requires": {
                        "drupal/core": "^10 || ^11"
                    }
                }
            }
        ],
    

    Install the package with composer:
    composer require 'drupal/text_formats_report:1.x-dev@dev'

    Then (hopefully) see a report similar to this image at the following route:
    /admin/reports/text-formats

  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest

    Updates for a drill-down detail page.

    I went ahead and maxed the rows of this report at 100. The idea of this report (for our usage anyway) is to determine unused or rarely-used text formats, so we are looking at the detail pages that only have 10 or less records. I put in a note "@todo" to add pagination to the details report, but for now this will server our purpose to audit and clear out old formats.

    Report Details

  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest

    Testing Instructions

    Open the "Text Formats Report" page located at:

    /admin/reports/text-formats

    Verify the report loads without error
    Verify you can click "Details" and see the drill-down report
    Verify the "usage" number from the list report matches the number of entries on the detail page (when less than 100)
    Verify the report maxes out at 100
    Verify on the detail that you can click the "Link" to view the entity that has the field value
    Verify on a paragraph, it will provide the link to the top most parent entity
    Verify the results are accurate
    Verify on the detail report you cannot manually change any of the URL paramaters (for security)

Production build 0.71.5 2024