Problem/Motivation

Currently, the Redirect Audit module lacks Drush commands for common administrative tasks, requiring users to perform operations exclusively through the UI.

Additionally, some counts and status messages can be optimized to make them easier for users to understand.

Proposed resolution

  • Implement Drush commands for general module tasks:
    • Scanning redirects for issues (chains, loops)
    • Resolving detected problems
    • Cleaning/managing audit logs
  • Improve the clarity of counts and status messages for end-users
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

antonio nunez created an issue. See original summary.

antonio nunez’s picture

Title: Add unit tests and drush commands » Add Drush commands and improve UX messages
Issue summary: View changes
antonio nunez’s picture

Version: 1.0.1 » 1.1.0

antonio nunez’s picture

Status: Active » Needs review
Issue tags: -Unit tests +UX

The following Drush commands have been created:

  • redirect-audit:scan (ras): scans all redirects for chains and loops.
  • redirect-audit:fix (raf): automatically fixes detected chains.
  • redirect-audit:info (rai): displays statistics, configuration, and detailed logs.

In addition, UX messages have been improved across the board for a clearer and more consistent user experience.

antonio nunez’s picture

Status: Needs review » Needs work
antonio nunez’s picture

Status: Needs work » Fixed

Final corrections have been made for optimal performance and it has been validated on different sites.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.