diff options
Diffstat (limited to 'app/models/incident_management/timeline_event.rb')
-rw-r--r-- | app/models/incident_management/timeline_event.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/incident_management/timeline_event.rb b/app/models/incident_management/timeline_event.rb index 735d4e4298c..e70209f1538 100644 --- a/app/models/incident_management/timeline_event.rb +++ b/app/models/incident_management/timeline_event.rb @@ -18,6 +18,8 @@ module IncidentManagement validates :project, :incident, :occurred_at, presence: true validates :action, presence: true, length: { maximum: 128 } + # `user_input` is a note filled in by a user via API. Not auto generated by GitLab + validates :note, presence: true, length: { maximum: 280 }, on: :user_input validates :note, presence: true, length: { maximum: 10_000 } validates :note_html, length: { maximum: 10_000 } |