From 18745b2d5c1899bc279696548cb3ebecf7c6b90f Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 4 Nov 2016 17:20:21 -0400 Subject: Increase Channel Purpose length to 250, and add channel field length handling code to the slack importer (#4458) * Increase Channel Purpose length to 250. This commit increases the maxmimum length of the channel purpose field to 250, including the database migration necessary. It also adds a method to the Slack importer to check the lengths of channel properties before importing, and truncate them if necessary. Fixes #4168 * Fix database migration. --- api/channel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/channel_test.go') diff --git a/api/channel_test.go b/api/channel_test.go index 83bb732dd..d05cd495b 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -546,7 +546,7 @@ func TestUpdateChannelPurpose(t *testing.T) { } data["channel_id"] = channel1.Id - data["channel_purpose"] = strings.Repeat("a", 150) + data["channel_purpose"] = strings.Repeat("a", 350) if _, err := Client.UpdateChannelPurpose(data); err == nil { t.Fatal("should have errored on bad channel purpose") } -- cgit v1.2.3-1-g7c22