uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Allow "upgrade" of certain template properties: select -> multiselect, text -> rich text (markdown)

Open RafaPolit opened this issue 4 years ago • 4 comments

Given our new metadata structure, selects can, transparently and without any issue, become multiselects (not the other way around!!!). Text fields can also become Rich Text fields (and, in this case, loosing the formatting, perhaps also the other way around).

We should provide a way to "upgrade" this fields at any given point. It's a good quality of life improvement and costs nothing on our side.

RafaPolit avatar Sep 01 '20 16:09 RafaPolit

@RafaPolit what about rather simplifying and having only multi-select and rich text?

txau avatar Sep 02 '20 02:09 txau

Well, I think it's not enough. You really want some selects to allow only a single value. So it could be a 'select' that has option to allow single or multiple values.

With text, it's a little less clear. We could make all text rich text, but then all values would be wrapped in, at least, a <p>, and that is not necessarily something we want for really simple text fields, so not sure.

RafaPolit avatar Sep 08 '20 17:09 RafaPolit

Some other transformations are also possible:

  • Numeric => text
  • Text => numeric (validate data dry-run first)
  • Text => thesaurus (resolve duplicates into single values)
  • Numeric => thesaurus
  • Thesaurus => text
  • Dates => other dates (with some internal rules)
  • Text => geolocation (location name to lat/long resolution)
  • Geolocation => text (lat/long to location name resolution)

txau avatar Feb 26 '22 14:02 txau

This can be worked as part of the template creation redesign.

RafaPolit avatar Nov 24 '23 14:11 RafaPolit