Skip to content

Commit

Permalink
[webui][api] Make description a shortenable key for events.
Browse files Browse the repository at this point in the history
We are seeing an error occur when an Event::RequestCreate is attempted
to be created and the description is too long to fit in the database.
So the description will be amde "shortenable" so it will shorten it
if its too long.
  • Loading branch information
Evan Rolfe committed Dec 5, 2017
1 parent 39cc9da commit c340154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/app/models/event/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Event::Request < ::Event::Base
self.description = 'Request was updated'
self.abstract_class = true
payload_keys :author, :comment, :description, :number, :actions, :state, :when, :who
shortenable_key :description

DiffLimit = 120

Expand Down

0 comments on commit c340154

Please sign in to comment.