-
Notifications
You must be signed in to change notification settings - Fork 26
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
[MM-60513] Import profile pictures from Slack. #57
base: master
Are you sure you want to change the base?
Conversation
Closes mattermost#53. This expects a Slack zip archive produced by slack-advanced-exporter with the additional PR: grundleborg/slack-advanced-exporter#37
dbfae1d
to
956b26f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM.
Thanks for the review! In case this was unclear from my description above: the dump format which this PR expects is something that I made up. It is generated by grundleborg/slack-advanced-exporter#37 but does not correspond (as far as I know) to anything produced by Slack itself. Slack just provides the URLs of the profile pictures without including them in the dump - at least for the dumps I could get generate myself. So unless you are happy with documenting that Marking the PR as draft to make this clearer |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
ping @isacikgoz |
@wetneb I'd say let's document that for the profile pictures, they can use your fork of |
commands/transform.go
Outdated
@@ -93,6 +93,19 @@ func transformSlackCmdF(cmd *cobra.Command, args []string) error { | |||
} | |||
} | |||
|
|||
if !skipAttachments { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to activate this path only if the flag is set. (eg. --include-profile-pictures
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the other flags I have introduced it as --skip-profile-pictures
, with a default set to false
.
332b07f
to
fdb7f68
Compare
As you want. Once this is released, the docs to be updated are at https://docs.mattermost.com/onboard/migrate-from-slack.html. |
Co-authored-by: Felipe Martin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @wetneb
Feel free to get the PR ready, we can merge once a new version of |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
I have opened a PR to update the docs here: mattermost/docs#7674 |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Summary
This makes it possible to import profile pictures from Slack.
The code expects a Slack zip archive produced by slack-advanced-exporter with the additional PR:
grundleborg/slack-advanced-exporter#37
Given that
slack-advanced-exporter
doesn't seem actively developed, I am not sure if the PR there has any chances of getting through, so which makes it unlikely that this PR can also get accepted.For this reason, it's perhaps a better idea to do the downloading in mmetl directly…
Ticket Link
https://mattermost.atlassian.net/browse/MM-60513
Closes #53.