dailypenn / eventsatpenn

Penn campus events aggregation website with Facebook integration
0 stars 0 forks source link

Gracefully handle too-long descriptions #101

Open alexwgraves opened 6 years ago

alexwgraves commented 6 years ago

Currently, records with too-long descriptions (over 5000 characters) fail and are never added to the database. Instead of this, they should be added, but should be cut off after 4999 characters with an ellipsis.

ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'description': https://sentry.io/dailypenn/eventspenn/issues/336746905/