response
response copied to clipboard
Possible to set a channel name that's too long
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 aCharFieldwith a cap over aTextFieldif 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.