#2343 Limit the size of the name and description fields to alexandria field lengths

v1.0.0
closed
sf-2 (994)
Admin
nobody
2015-08-20
2011-06-20
No

alexandria has a field limit of 40 on the group_name, and 255 on the short_description. It looks like on the /admin/overview page, the description field is already truncated using JS, but the name field has to be limited to 40 chars as well. Is it possible to do this only for the sftheme (and not the FOSS theme?).

Discussion

  • Jenny Steele - 2011-06-22
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2011-06-22

    Change is on allura js/2343. There isn't a way to make this change just for the sftheme at the moment.

     
  • Jenny Steele - 2011-06-22
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Tim Van Steenburgh
    • size: --> 1
     
  • Jenny Steele - 2011-06-22

    John just pointed out some additional work to do on this one.

     
  • Jenny Steele - 2011-06-22
    • status: code-review --> in-progress
    • assigned_to: Tim Van Steenburgh --> Jenny Steele
     
  • Jenny Steele - 2011-06-22
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Tim Van Steenburgh
    • size: 1 --> 2
     
  • Jenny Steele - 2011-06-22

    This is actually making sure project names don't exceed 40 bytes through multi-byte unicode chars. To test, go to the project metadata admin page and enter a name like "12345678901234567890123456789012345678蘇家" for the project. You will see an error message that the name can't exceed 40 bytes. Also do a similar test for the description field and make sure it can't exceed 255 bytes. Next, go to the allura add project and make sure you get the same message when you try to create a project with a name like "12345678901234567890123456789012345678蘇家".

     
    • status: code-review --> closed
    • assigned_to: Tim Van Steenburgh --> Jenny Steele

    Looks good, merged to dev.

     

Log in to post a comment.