debian-mirror-gitlab/doc/development/issuable-like-models.md

23 lines
848 B
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
stage: Plan
group: Project Management
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2019-12-21 20:55:43 +05:30
# Issuable-like Rails models utilities
2020-01-01 13:55:28 +05:30
GitLab Rails codebase contains several models that hold common functionality and behave similarly to
2020-04-08 14:13:33 +05:30
[Issues](../user/project/issues/index.md). Other examples of "issuables"
2022-04-04 11:22:00 +05:30
are [merge requests](../user/project/merge_requests/index.md) and
2020-04-08 14:13:33 +05:30
[Epics](../user/group/epics/index.md).
2019-12-21 20:55:43 +05:30
This guide accumulates guidelines on working with such Rails models.
## Important text fields
2020-10-24 23:57:45 +05:30
There are maximum length constraints for the most important text fields for issuables:
2019-12-21 20:55:43 +05:30
2020-10-24 23:57:45 +05:30
- `title`: 255 characters
- `title_html`: 800 characters
2019-12-21 20:55:43 +05:30
- `description`: 1 megabyte
- `description_html`: 5 megabytes