Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Slack database migration

Open IwishIcanFLighT opened this issue 11 years ago • 127 comments

Hi, I just discovered RocketChat and I already love it! Keep it up!

As RocketChat claims itself as a Slack-like app, I think it would be great to let the admins to migrate theirs own Slack database (channels, user infos, etc) via the Slack export tool. The export is a bunch of JSON file ready to be used.

This would encourage people to use RocketChat instead of Slack, even if they've been using Slack before.

Thanks !

Items Left to Be Done:

  • [x] Message to a channel when that channel is archived
  • [x] File uploads/attachments
  • [ ] Emails for invites (or something) to be sent out after the import is finished and new users were imported which aren't deleted in slack.
  • [x] Lots of testing
  • [x] Messages from bots (bot_message)
  • [x] Messages about channel renaming (channel_name)
  • [x] Messages about setting a channel's topic (channel_topic)
  • [ ] Messages about messages being pinned (pinned_item)
  • [x] Messages about setting a channel's purpose (channel_purpose)
  • [ ] Messages about a channel being archived (channel_archive)

** ~~Not Importing Right Now~~ **

  • [x] ~~Messages about file comments (file_comment)~~
  • [x] ~~Messages about integrations being added to channels (bot_add)~~

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

IwishIcanFLighT avatar Jul 23 '15 09:07 IwishIcanFLighT

we are glad to hear that you loved our app :D

this migration makes sense but we haven't thought about it before.

maybe when we get closer to 1.0 we should do it

sampaiodiego avatar Jul 23 '15 12:07 sampaiodiego

Awesome, thanks ! :D

IwishIcanFLighT avatar Jul 23 '15 12:07 IwishIcanFLighT

I guess this should be available with the slack-like API (#202) . Maybe it could be added to the v1.1 milestone as well.

guarilha avatar Jul 23 '15 15:07 guarilha

This would be the best thing ever! I would really like to migrate all the information from my Slack team to Rocket.Chat

Angarsk8 avatar Oct 07 '15 03:10 Angarsk8

btw, @graywolf336 was working on importing slack data, but I dont how it is going.

sampaiodiego avatar Oct 07 '15 03:10 sampaiodiego

Yes, currently working on and off with @geekgonecrazy to get the import framework complete and then finish the slack import.

graywolf336 avatar Oct 08 '15 02:10 graywolf336

That's great news! I can't wait to test it! :smile:

IwishIcanFLighT avatar Oct 08 '15 08:10 IwishIcanFLighT

I've made some good progress, but need opinions. Currently when you upload the exported file (zip) it returns back the users and channels you had in Slack. It contains the deleted users along with the archived channels. My test export has 22 users and 28 channels, a small amount compared to other organizations I've heard about. I want to present a list of users and a list of channels then allow the person doing the importing to select which ones they want, but, and I am asking for opinions, I am unsure how to efficiently do this if the import data has a ton of users and channels. Should it just be a checklist with a Select All up top? Because I also want to enable it so that if there are any current users or channels in Rocket.Chat which align to the Slack data then it suggests that and you can decline or accept to merge the two.

graywolf336 avatar Oct 15 '15 16:10 graywolf336

@RocketChat/owners thoughts / feedback on this ? ^

geekgonecrazy avatar Oct 15 '15 16:10 geekgonecrazy

Oh well, it really could be a pain when you have so much things to import. my suggestion is to create a button "import all", that does what it says =P

did you have import data to a temp collection after uploading the zip file? if so, it could be simple to create a page showing fewer results per page and setting a flag on that row on db..

sampaiodiego avatar Oct 15 '15 16:10 sampaiodiego

A nice big button at the top that says "Just Import it All!" :stuck_out_tongue_closed_eyes:

No they're not in a temporary collection or anything, just in memory but could easily be converted over or could be paged with how they're stored for now (nothing is final, just the beginnings).

graywolf336 avatar Oct 15 '15 19:10 graywolf336

@graywolf336: I'd love to get my team trialling Rocket.Chat for business usage, is there any way I can give a hand?

liamdawson avatar Oct 19 '15 04:10 liamdawson

@liamdawson: Message me on Rocket.Chat demo server and we can discuss details :smile:

graywolf336 avatar Oct 19 '15 20:10 graywolf336

Just a status update, I've got channels, users, and messages importing. Currently working on the special message types and importing files.

2015-10-23_14-03-05

graywolf336 avatar Oct 23 '15 19:10 graywolf336

:+1: this is awesome!

geekgonecrazy avatar Oct 24 '15 02:10 geekgonecrazy

@graywolf336 you are awesome!!!!

engelgabriel avatar Oct 24 '15 10:10 engelgabriel

Things left to do:

  • File uploads/attachments
  • Message to a channel when that channel is archived
  • File comments - this I am unsure how to handle, suggestions are welcomed.
  • Cleaning up the slack message to rocket message, currently a bunch of 'replace' methods.
  • Lots of testing
  • Anything I missed
  • Emails for invites (or something) to be sent out after the import is finished and new users were imported which aren't deleted in slack.

This sounds strange, but I am looking for someone with a rather large Slack export so that I can test with and verify it doesn't crash majorly when the exported zip file is larger than 1,627KB.

graywolf336 avatar Oct 30 '15 04:10 graywolf336

@graywolf336 I've added your list to the issue description as a checklist.

engelgabriel avatar Nov 12 '15 22:11 engelgabriel

@engelgabriel Sounds good, I'll let you know when I complete the items since I can't check them off myself. If you happen to come across a community or someone interested, have them contact me so we can test it with other Slack exports besides mine...especially larger sized ones.

graywolf336 avatar Nov 12 '15 22:11 graywolf336

@graywolf336 I've got a large-ish Slack export (about 8.5MB) that I could try out a Rocket.Chat import on if you're interested.

jimlawton avatar Nov 12 '15 23:11 jimlawton