Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack import: update docs and add a comment. #9110

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions templates/zerver/help/import-data-from-slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ cd ~/zulip
./manage.py import --import-into-nonempty <subdomain> converted_slack_data
```

### Increase Performance

Add the option `--threads` in the `convert_slack_data` management command and replace `<threads>`
by the number of threads you want to run this script on, to increase performance.
```
./manage.py convert_slack_data slack_data.zip --token <token> --output converted_slack_data
--threads <threads>
```

## Caveats

- Slack doesn't export private channels or direct messages unless you pay
Expand Down
4 changes: 4 additions & 0 deletions zerver/lib/slack_data_to_zulip_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ def get_avatar(avatar_upload_list: List[str]) -> int:

avatar_upload_list.append([slack_avatar_url, image_path, original_image_path])

# We don't add the size information here in avatar's records.json, as it is not
# required while importing the avatars.
# Check the function 'import_uploads_local' and 'import_uploads_s3'
# in 'export.py' for this.
avatar['path'] = image_path
avatar['s3_path'] = image_path

Expand Down