Skip to content

split incoming tags #377

Description

@alee

Multiple fixes for this:

  1. frontend shouldn't allow tags over 100 chars (always)
  2. frontend could split by ';' or ','
  3. backend serializer should raise a validation error if tag names > 100 chars (always)
  4. backend could split by ';' or ',' as well but this seems magical and could strip out legitimate semicolony tags (not sure if that should exist though)

Thoughts?

TagSerializer(data=[OrderedDict([('name', 'Energy security; energy landscape; Egypt; multi-criteria decision analysis; agent-based modeling; Geographic Information System')])], many=True):
    name = CharField()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions