Import of terms adds Doubles

Created on 6 July 2022, over 2 years ago
Updated 10 October 2023, over 1 year ago

Problem/Motivation

Import of terms adds Doubles
When adding
animal ->Dog
animal -> Hors

You have 2 times Animals in the taxonmy

Steps to reproduce

/admin/structure/taxonomy_manager/

pick ataxonomy
-> import add term "animal"
-> import add term "animal" (second time)

result 2 times animal in taxonomy -->should not happen

Proposed resolution

test for uniqueness, only add if not present

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium ikeigenwijs

Live updates comments and jobs are added and updated live.
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.

  • 🇮🇳India viren18febs

    Hi @ikeigenwijs,

    As per Drupal default functionality, we are able to add the terms in a vocabulary with the same names & this module follows the same. so i don't think its needed.

  • Status changed to Closed: won't fix 7 months ago
  • 🇫🇮Finland sokru

    Agree with @viren18febs so closing this issue.

  • Status changed to Active 6 months ago
  • 🇧🇪Belgium ikeigenwijs

    its a hierarchical tree structure it does not make sens to add the same term on the same level.

    it invalidates the tagging principle " give me all the xx" xx being a tid
    import result example.

    eg:
    ok
    animal(tid 1) > horse(tid 2)
    > dog(tid 3)

    not ok
    animal(tid 1) > horse (tid 2)
    animal (tid 3)> dog (tid 4)

    i hope it more clear so as way, there i no use case where the same term name on the same level makes sense in a hierarchical tree.

Production build 0.71.5 2024