mattermost/api
George Goldberg e1fca412fc PLT-4442 Generate preview images sequentially in Slack importer (#4617)
* Break out image preparation to its own function.

This is preparatory work to make it easier to handle the thumbnail image
generation in a non-racy way in the Slack command line importer.

* Build preview images sequentially in Slack import.

This removes the use of goroutines from the image preview generation
code run when importing Slack attachments. This slows things down, but
it has important benefits:

1) Avoids a race condition with the goroutines and the command line
   exiting.

2) Avoids the problem of massive memory consumption when importing a
   Slack channel with a lot of large images attached in quick succession.

Fixes PLT-4442.

* Use mutliple return values instead of struct.
2016-11-22 10:14:25 -05:00
..
admin.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
admin_test.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
api.go PLT-3105 Files table migration (#4068) 2016-09-30 11:06:30 -04:00
apitestlib.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
authentication.go Some improvments to password handling (#3549) 2016-07-12 10:09:04 -04:00
authorization.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
authorization_test.go Modifying permissions system. (#3897) 2016-09-13 12:42:48 -04:00
auto_channels.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
auto_constants.go Changing SpinPunch to Mattermost in copyright 2015-10-08 12:27:09 -04:00
auto_environment.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
auto_posts.go PLT-3105 Files table migration (#4068) 2016-09-30 11:06:30 -04:00
auto_teams.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
auto_users.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
channel.go PLT-4716 fixes cache invalidation issue (#4518) 2016-11-10 09:25:23 -05:00
channel_test.go Added small delay to TestUpdateChannelHeader (#4478) 2016-11-07 13:14:12 -05:00
cli_test.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
command.go plt-2610 allow slash command to override username/icon_url (#4378) 2016-11-17 09:19:11 -05:00
command_away.go PLT-1527 Add a slash command to set yourself away (#3752) 2016-08-31 09:24:14 -04:00
command_echo.go Revert/Fix PLT-2805 (#3873) 2016-08-29 09:51:29 -04:00
command_echo_test.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
command_expand_collapse.go PLT-3734 Cleaning up shouldSendEvent function (#4024) 2016-09-27 10:19:50 -04:00
command_expand_collapse_test.go PLT-3114 Moved preview collapse out of pre-release features (#3206) 2016-06-06 10:41:54 -07:00
command_invite_people.go PLT-3131 Add slash command for sending email invites (#3218) 2016-06-02 19:39:23 -03:00
command_invite_people_test.go PLT-3131 Add slash command for sending email invites (#3218) 2016-06-02 19:39:23 -03:00
command_join.go PLT-4430 improve slow channel switching (#4331) 2016-10-27 11:24:30 -04:00
command_join_test.go PLT-4430 improve slow channel switching (#4331) 2016-10-27 11:24:30 -04:00
command_loadtest.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
command_loadtest_test.go Make tests pass without internet connection (#4211) 2016-10-13 14:04:46 -04:00
command_logout.go Fixing /logout command (#2908) 2016-05-06 12:08:49 -04:00
command_logout_test.go Fixing /logout command (#2908) 2016-05-06 12:08:49 -04:00
command_me.go Adding loc to new command backend 2016-02-01 18:52:43 -08:00
command_me_test.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
command_msg.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
command_msg_test.go Recent mention searches now OR terms instead of AND (#2931) 2016-05-09 09:00:08 -07:00
command_offline.go PLT-1527 Add a slash command to set yourself away (#3752) 2016-08-31 09:24:14 -04:00
command_online.go PLT-1527 Add a slash command to set yourself away (#3752) 2016-08-31 09:24:14 -04:00
command_shortcuts.go Split /shortcuts programmatically (#3850) 2016-08-22 15:19:29 -04:00
command_shortcuts_test.go made /shortcuts separate for mac (#3571) 2016-07-14 11:57:06 -08:00
command_shrug.go Adding loc to new command backend 2016-02-01 18:52:43 -08:00
command_shrug_test.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
command_statuses_test.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
command_test.go Add support for editing slash commands (#4335) 2016-11-15 12:43:16 -03:00
context.go Fixing clustering problem (#4320) 2016-10-25 08:56:06 -04:00
context_test.go Trim trailing slashes to prevent OAuth2 URI mismatch errors (#4204) 2016-10-12 09:51:57 -04:00
email_batching.go PLT-3647 Email Batching (#3718) 2016-08-16 14:41:47 -04:00
email_batching_test.go PLT-3647 Email Batching (#3718) 2016-08-16 14:41:47 -04:00
emoji.go PLT-4277: Allow larger custom emojis by resizing (#4447) 2016-11-21 23:00:13 -03:00
emoji_test.go PLT-4277: Allow larger custom emojis by resizing (#4447) 2016-11-21 23:00:13 -03:00
file.go PLT-4442 Generate preview images sequentially in Slack importer (#4617) 2016-11-22 10:14:25 -05:00
file_test.go Moving away from goamz to use minio-go instead. (#4193) 2016-10-26 08:21:07 -04:00
general.go PLT-2899 adding clustering of app servers (#3682) 2016-08-04 13:25:37 -04:00
general_test.go Adding APIs to reload config, recycle db connections and ping server (#3096) 2016-05-24 14:31:30 -07:00
import.go PLT-4442 Generate preview images sequentially in Slack importer (#4617) 2016-11-22 10:14:25 -05:00
license.go Modifying permissions system. (#3897) 2016-09-13 12:42:48 -04:00
license_test.go PLT-2057 User as a first class object (#2648) 2016-04-21 22:37:01 -07:00
oauth.go PLT-4202 fix javascript error manage OAuth2 apps (#4039) 2016-09-20 12:02:08 -04:00
oauth_test.go PLT-4202 fix javascript error manage OAuth2 apps (#4039) 2016-09-20 12:02:08 -04:00
post.go PLT-4598 add team id to push notification (#4623) 2016-11-21 22:55:43 -03:00
post_test.go Fix SystemAdmin use of CreateAt in CreatePost API (#4349) (#4408) 2016-11-17 14:05:53 -05:00
preference.go PLT-2992 Added the ability to use different themes for each team (#3411) 2016-07-14 10:08:36 -04:00
preference_test.go PLT-2992 Added the ability to use different themes for each team (#3411) 2016-07-14 10:08:36 -04:00
server.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
server_test.go Changing SpinPunch to Mattermost in copyright 2015-10-08 12:27:09 -04:00
slackimport.go Increase Channel Purpose length to 250, and add channel field length handling code to the slack importer (#4458) 2016-11-04 17:20:21 -04:00
slackimport_test.go Increase Channel Purpose length to 250, and add channel field length handling code to the slack importer (#4458) 2016-11-04 17:20:21 -04:00
status.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
status_test.go PLT-3562 Switch websocket over to post-connect authentication (#4327) 2016-10-31 08:59:23 -04:00
team.go PLT-4618 Fix email subjects (#4537) 2016-11-14 07:11:54 -05:00
team_test.go PLT-4481 Fix member count for team user lists and channel invite list (#4422) 2016-11-04 12:27:19 -04:00
user.go PLT-3762 - Add API call to get a user by their username (#4611) 2016-11-21 18:50:57 -05:00
user_test.go PLT-3762 - Add API call to get a user by their username (#4611) 2016-11-21 18:50:57 -05:00
web_conn.go Deauthenticate websockets and set status to offline when user account deactivated (#4551) 2016-11-15 12:38:58 -03:00
web_hub.go PLT-4716 fixes cache invalidation issue (#4518) 2016-11-10 09:25:23 -05:00
webhook.go PLT-4670 DM channel creation via webhook fails (#4523) 2016-11-10 09:20:22 -05:00
webhook_test.go GH-4187 Create direct channel during incoming webhook if not exists (#4206) 2016-10-17 08:12:56 -04:00
webrtc.go PLT-4550 move webrtc to TE (#4440) 2016-11-04 12:05:32 -04:00
webrtc_test.go PLT-4550 move webrtc to TE (#4440) 2016-11-04 12:05:32 -04:00
websocket.go PLT-3562 Switch websocket over to post-connect authentication (#4327) 2016-10-31 08:59:23 -04:00
websocket_handler.go Merging performance branch into master (#4268) 2016-10-19 14:49:25 -04:00
websocket_router.go Deauthenticate websockets and set status to offline when user account deactivated (#4551) 2016-11-15 12:38:58 -03:00
websocket_test.go Fix websocket authentication test build gremlin (#4549) 2016-11-15 12:39:23 -03:00