character validation/limitation should be there while creating glossary terms.

Description

Steps to Reproduce:

  • Login to zanata.

  • Click on Glossary menu

  • Click on create new glossary term icon.

  • Enter long string in term and part of speech

  • Observe the behaviour

Actual Result:

  • There is no limitation or validation for fields in new term modal-box

Expected Result:

  • Character limitation or validation should be there for creating new term.

Environment

None

Activity

Show:
Damian Jansen
January 18, 2018, 5:10 AM
Edited

Proposal:
Term - 500 characters (currently longtext)
Part of Speech - 255 characters (current)
Description - 500 characters (currently 255(!?))
Add field limits to the above to prevent attempts and improve usability.
Add limits in DTOs.

Migration:
If (select count( * ) from HGlossaryTerm where LENGTH(content) > 500)

  • Export the database table HGlossaryTerm

  • Truncate the content of any terms that are over these limits
    Increase field limit of HGlossaryEntry.description to varchar(500)

Ready for Release

Assignee

Alex Eng

Reporter

Sachin Pathare

Labels

None

Tested Version/s

None

Sprint

None

Affects versions

Priority

High
Configure