tracker icon indicating copy to clipboard operation
tracker copied to clipboard

Import "links" element from Fahrplan, join multiple values with whitespace

Open a-tze opened this issue 6 years ago • 6 comments

This information is useful in the releasing process, where the links can be rendered into the description for example.

a-tze avatar Feb 14 '19 19:02 a-tze

Are we sure links are always properly escaped? I don't have a good feeling about space separation – this is already kind of a hack with multiple persons.

jjeising avatar Feb 14 '19 22:02 jjeising

I'm unsure about XSD of schedule.xml format, wether it defines some constraint on the content of that field or not. As long as the tracker has no concept of multivalue properties, there is no other way than using a defined separation character. At the end, this might only produce broken links in the worst case.

a-tze avatar Feb 15 '19 00:02 a-tze

What about storing some actual (and sanely parsed/handled) HTML/XML? Like a property value of <a href="URL1">Link name1</a><a href="URL2">Link name2</a>... I know it's still a hack, multivalue properties would solve that, but this is a variation of the "separation character" approach and might be usable elsewhere.

And if you don't like HTML, what about Markup? [[URL1|Link name1]][[URL2|Link name2]] At least something with already defined rules, how to store/interpret.

pegro avatar Feb 15 '19 10:02 pegro

What about storing some actual (and sanely parsed/handled) HTML/XML?

HTML sounds like the most reasonable approach yet. I would refrain from introducing another markup that has then to be parsed by API consumers.

What are our chances to implement multi-value properties?

jjeising avatar Feb 19 '19 21:02 jjeising

I'd only start thinking about adding the level of complexity required for multi-value properties, if we have enough use-cases. Having multiple persons or links attached to a ticket, which both won't really parsed by neither tracker nor crs scripts, is a valid use-case, but not a strong one.

If we don't find more, we can think about allowing a simple array syntax or said HTML as property value.

pegro avatar Mar 25 '19 09:03 pegro

A simple array syntax, maybe like space separated values that must not contain spaces per definition?

a-tze avatar Mar 25 '19 10:03 a-tze