Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
One of the best parts of Taxonomy Manager in D7 was using it with Term Merge to combine multiple terms into one. However, that functionality isn't available in D8 yet, the integration hasn't been built yet.
Build the necessary integration so that the "merge" functionality can be used with Taxonomy Manager.
Comment | File | Size | Author |
---|---|---|---|
#17 | term_merge-n3160872-17.patch | 17.89 KB | DamienMcKenna |
#13 | 3160872-13-taxonomy_manager_compatibility.patch | 17.79 KB | Renrhaf |
Issue fork term_merge-3160872
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:
- 3160872-integration-with-taxonomy changes, plain diff MR !2
- 8.x-1.x changes, plain diff MR !1
Comments
Comment #2
VladimirAusBumping priority to
Major
so we can look at it in the near furute.Comment #3
alesbencina CreditAttribution: alesbencina as a volunteer and at Agiledrop - Your Trusted Drupal Teammates commentedhi,
I have created a patch for taxonomy manager which uses the term merge.
https://www.drupal.org/project/taxonomy_manager/issues/3220993#comment-1...
For term_merge module I've added a module handler if taxonomy_manager is enabled and changed the route name to taxonomy_manager.admin_vocabulary'.
Comment #7
klausiThanks, the pull request is pretty far and I reviewed it.
I'm not sure if the API changes are acceptable to the maintainers, leaving it at "needs review" for now.
Comment #9
klausiTests are failing, can you fix the interface declaration of that dummy?
I think it would also be good to add some test coverage for the new functionality that the API works as intended.
Comment #10
klausiThanks, looks good to me now!
As I said leaving this in the "needs review" state for the maintainers.
Comment #11
mlncn CreditAttribution: mlncn as a volunteer and at Agaric for Drutopia, Find It Cambridge, Cambridge, Massachusetts Family Policy Council commentedThis is tested and working with #3220993: Option to merge terms (Term Merge integration).
(Setting to RTBC — at least for myself as a maintainer i like to see things that are reviewed and tested by the community right up front!)
Comment #12
catchThis now needs to target the 2.0.x branch. The MR doesn't apply there.
Comment #13
RenrhafRerolling patch for 2.0.x branch.
Using the old school method since I do not have the rights to modify the PR on gitlab.
Please note that was a hardcoded field name "field_term_synonyms" used in the module code which in my opinion is not acceptable, I created a new event dispatched before the merge event to let other modules modify the source terms and target term before the merge.
The code that was using this hard coded field can be put into such an event subscriber.
(See the patch on taxonomy manager side : https://www.drupal.org/project/taxonomy_manager/issues/3220993#comment-1...)
Comment #14
RenrhafComment #15
AnybodyLeft a review comment. Looking really good, but still needs some work, I guess?
BTW there's activity in #3220993: Option to merge terms (Term Merge integration) again! :)
Comment #16
ressinelRe-rolled patch #13 to make it compatible with Drupal 10.
Comment #17
DamienMcKennaThe merge request needs to be updated to the 2.0.x branch.
This is a reroll to fix changes in TermMerger.php.