lepo-project / lepo

LePo: Learning Management System with Note & Sticky

Home Page:https://lepo.app/en/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit snippet.description.length

kyoshizaki opened this issue · comments

Description length limit for table column

  • migration file: t.text
  • maria db: text => 65,535

Description length limit for model

source_type: direct

  • category: text / header / subheader
  • description: text of the snippet
  • limit: USER_TEXT_LENGTH => SNIPPET_MAX_LENGTH
    • constant rename and before_save callback

source_type: page

  • category: text
  • description: text of the snippet
  • limit: (none) => SNIPPET_MAX_LENGTH
    • before_save callback

source_type: upload

  • category: image
  • description: NULL

source_type: web

  • category: text
    • description: text of the snippet
    • limit: WEB_SNIPPET_MAX_LENGTH
  • category: pdf
    • description: text of the snippet
    • limit: (none) => SNIPPET_MAX_LENGTH
    • remarks: SHOULD BE WEB_SNIPPET_MAX_LENGTH and WILL BE CHANGED after 1st semester of 2018
  • category: image
    • description: URL
    • limit: (none)
    • remarks: this should be stored in other table/column and make all snippet.description.length <= SNIPPET_MAX_LENGTH
  • category: scratch / ted / youtube
    • description: ''