Thank you for this module! I am very impressed that it (eventually) showed our 19,180 tags that were crashing Drupal core's taxonomy vocabulary admin page! Unfortunately it has a problem with installation via the recommended way for modern Drupal (8, 9, 10 etc), via Composer. I am also interested in adding the capability to bulk delete all taxonomy terms with zero (or, alternatively, one or a configurable threshold) content items referencing them, and would be happy to be a maintainer to help with these issues.

Problem/Motivation

I would like to include this module on many projects and possibly as part of the Drutopia distribution.

Steps to reproduce

composer require drupal/cleantaxonomy

happily goes ahead with "Installing drupal/cleantaxonomy (dev-1.x 7773d50): Cloning 7773d5040a from cache"

But when i go to enable it, withdrush en cleantaxonomy

it fails:

> Unable to install modules cleantaxonomy due to missing modules cleantaxonomy.
> Failed to execute command drush -y en cleantaxonomy: exit status 1

Looked around for why and saw it was placed in the drush/Commands/contrib/ folder. (The drush commands did not show up either though!)

Proposed resolution

Moved to web/modules/contrib the module works

Change the "type": "drupal-drush", line in the composer.json file to "drupal-module" (and the name to drupal/cleantaxonomy).

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

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

mlncn created an issue. See original summary.

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Status: Active » Needs review

Committed and MR in accordance to the proposed resolution.

mlncn’s picture

Status: Needs review » Reviewed & tested by the community

Works great! Thank you!

For others looking to test this, update your composer.json to include:

     "repositories": {
        "cleantaxonomy": {
            "type": "git",
            "url": "git@git.drupal.org:issue/cleantaxonomy-3311321.git"
        },
    },
    "require": {
        "drupal/cleantaxonomy": "dev-3311321-composer-installs-to",
    }

gaurav.kapoor made their first commit to this issue’s fork.

gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for spotting this. Pushed to 8.x-1.x.

Status: Fixed » Closed (fixed)

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