I believe it's currently possible to set a channel name with rename that is too long to fit in the database table.
Recommendations of fixes:
Convert to TextField, on Postgres at least there's essentially no performance benefit of using a CharField with a cap over a TextField if you don't want to cap the column size.
Save to the database before making the Slack API calls. This way if the database save fails, Slack isn't modified, but if the API calls fail the database changes will roll back anyway.
I believe it's currently possible to set a channel name with
rename
that is too long to fit in the database table.Recommendations of fixes:
TextField
, on Postgres at least there's essentially no performance benefit of using aCharField
with a cap over aTextField
if you don't want to cap the column size.