huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

Thesaurus import glitches #7170

Open txau opened 2 months ago

txau commented 2 months ago

Two glitches depending on the backend:

  1. When importing, if the thesaurus does not contain items in the current UI language, the import fails. It should fallback to using the CSV language for all languages.
  2. Moreover, after a failed attempt at importing, it won't allow to re-import the corrected CSV because despite the failed import the thesaurus is created and it is detecting the new import as a new creation, giving a uniqueName error. Either not save the thesaurus, or properly update the front-end so it becomes a saved thesaurus and the operation becomes an update instead of a creation.
RafaPolit commented 2 months ago

Current UI language should have no influence in what is being imported. The import thesaurus flow should just take into account the CSV contents. The only thing that could impact is the default language configured, but nothing else. Can you provide de CSV being imported?