Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
data_import: Document Rocket.Chat import tool.
Priyansh Garge68b1989b3a0
diff --git a/templates/zerver/create_realm.html b/templates/zerver/create_realm.htmlindex c3ff8845546..202d946009f 100644--- a/templates/zerver/create_realm.html+++ b/templates/zerver/create_realm.html@@ -34,8 +34,8 @@{% endif %}<div class="bottom-text">Or import- from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>- or <a href="/help/import-from-gitter">Gitter</a>.+ from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>,+ <a href="/help/import-from-gitter">Gitter</a>, or <a href="/help/import-from-rocketchat">Rocket.Chat</a>.</div></div></div>diff --git a/templates/zerver/features.html b/templates/zerver/features.htmlindex e7749cb3027..32da93d29eb 100644--- a/templates/zerver/features.html+++ b/templates/zerver/features.html@@ -251,7 +251,7 @@<a class="feature-block" href="/help/import-from-slack" target="_blank" rel="noopener noreferrer"><h3>DATA IMPORT</h3><p>- Import an existing Slack, Mattermost or Gitter workspace into Zulip.+ Import an existing Slack, Mattermost, Gitter or Rocket.Chat workspace into Zulip.</p></a><a class="feature-block" href="/help/add-custom-profile-fields" target="_blank" rel="noopener noreferrer">diff --git a/templates/zerver/for-research.html b/templates/zerver/for-research.htmlindex aeaefd21a2a..e0cbd8607da 100644--- a/templates/zerver/for-research.html+++ b/templates/zerver/for-research.html@@ -333,7 +333,7 @@<a href="/for/events/">conferences</a>.</div></li>- <li><div class="list-content">Getting started or moving from another platform is easy! Import your existing organization from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>, or <a href="/help/import-from-gitter">Gitter</a>.</div></li>+ <li><div class="list-content">Getting started or moving from another platform is easy! Import your existing organization from <a href="/help/import-from-slack">Slack</a>, <a href="/help/import-from-mattermost">Mattermost</a>, <a href="/help/import-from-gitter">Gitter</a>, or <a href="/help/import-from-rocketchat">Rocket.Chat</a>.</div></li><li><div class="list-content">Fully <a href="/help/stream-notifications">customizable notifications</a> let participants keep an eye on the discussions they care about.</div></li><li><div class="list-content">If you have any questions, please contact us at <a href="mailto:[email protected]">[email protected]</a>. You can also drop by our <a href="/developer-community/">friendly developer community at chat.zulip.org</a> to ask for help or suggest improvements!</div></li></ul>diff --git a/templates/zerver/for/communities.md b/templates/zerver/for/communities.mdindex 5ff3db59917..149dafbaa44 100644--- a/templates/zerver/for/communities.md+++ b/templates/zerver/for/communities.md@@ -127,8 +127,9 @@ improvements into Zulip.Many communities that migrated from[Slack](/help/import-from-slack),-[Mattermost](/help/import-from-mattermost), or-[Gitter](/help/import-from-gitter) to Zulip tell us+[Mattermost](/help/import-from-mattermost),+[Gitter](/help/import-from-gitter), or+[Rocket.Chat](/help/import-from-rocketchat) to Zulip tell usthat Zulip helped them manage and grow an inclusive, healthycommunity. We hope Zulip can help your community succeed too!diff --git a/templates/zerver/for/open-source.md b/templates/zerver/for/open-source.mdindex 2411cd3b6ad..05b2a5480b5 100644--- a/templates/zerver/for/open-source.md+++ b/templates/zerver/for/open-source.md@@ -120,11 +120,12 @@ account](/help/configure-authentication-methods), instead of with ausername and password.[github-auth]: https://github.com/zulip/zulip/blob/7e9926233/zproject/prod_settings_template.py#L112-### Import from Slack, Mattermost, or Gitter.+### Import from Slack, Mattermost, Gitter, or Rocket.Chat.Import your existing organization from [Slack](/help/import-from-slack),-[Mattermost](/help/import-from-mattermost), or-[Gitter](/help/import-from-gitter).+[Mattermost](/help/import-from-mattermost),+[Gitter](/help/import-from-gitter), or+[Rocket.Chat](/help/import-from-rocketchat).### Collaborate on code and formulasdiff --git a/templates/zerver/help/import-from-rocketchat.md b/templates/zerver/help/import-from-rocketchat.mdnew file mode 100644index 00000000000..b67af6fcd4f--- /dev/null+++ b/templates/zerver/help/import-from-rocketchat.md@@ -0,0 +1,101 @@+# Import from Rocket.Chat++Starting with Zulip 5.0, Zulip supports importing data from Rocket.Chat,+including users, teams, channels, discussions, messages, and more.++**Note:** You can only import a Rocket.Chat workspace as a new Zulip+organization. In particular, you cannot use this tool to import data+into an existing Zulip organization.++## Import from Rocket.Chat++First, you need to export your data from Rocket.Chat. Rocket.Chat does+not provide an official data export feature, so the Zulip import tool+works by importing data from a Rocket.Chat database dump.++If you're self-hosting your Rocket.Chat instance, you can create a+database dump using the `mongodump` utility.++If your organization is hosted on Rocket.Chat Cloud or another hosting+provider that doesn't provide you with database access, you will need+to request a database dump by contacting their support.++In either case, you should end up with a directory containing many+`.bson` files.++### Import into Zulip Cloud++Email [email protected] with your database dump and your desired+Zulip subdomain. Your imported organization will be hosted at+`<subdomain>.zulipchat.com`.++If you've already created a test organization at+`<subdomain>.zulipchat.com`, let us know, and we can rename the old+organization first.++### Import into a self-hosted Zulip server++First [install a new Zulip+server](https://zulip.readthedocs.io/en/stable/production/install.html)+with Zulip 5.0 or newer, skipping "Step 3: Create a Zulip+organization, and log in" (you'll create your Zulip organization via+the data import tool instead).++Now, get the directory containing all the `bson` files in your database+dump and save it inside `/home/zulip/rocketchat` on your Zulip server and rename it+to `rocketchat` (the directory at `/home/zulip/rocketchat` should contain+all the `bson` files).++Log in to a shell on your Zulip server as the `zulip` user. To import with+the most common configuration, run the following commands:++```+cd /home/zulip/deployments/current+./scripts/stop-server+./manage.py convert_rocketchat_data /home/zulip/rocketchat --output /home/zulip/converted_rocketchat_data+./manage.py import "" /home/zulip/converted_rocketchat_data+./scripts/start-server+```++This could take a few seconds to several minutes to run, depending on how+much data you're importing. The server stop/restart is only necessary+when importing on a server with minimal RAM, where an OOM kill might+otherwise occur.++**Import options**++The commands above create an imported organization on the root domain+(`EXTERNAL_HOST`) of the Zulip installation. You can also import into a+custom subdomain, e.g. if you already have an existing organization on the+root domain. Replace the last line above with the following, after replacing+`<subdomain>` with the desired subdomain.++```+./manage.py import <subdomain> /home/zulip/converted_rocketchat_data+```++{!import-login.md!}++[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository++## Caveats++This import tool is currently beta and does not support importing+the following data:++- Custom emoji+- User avatars+- Uploaded files+- Default channels for new users+- Wildcard mentions such as `@all` and `@here` are not converted.+- Starred messages+- Threads as separate topics+- Messages longer than Zulip's limit of 10,000 characters.++Additionally, because Rocket.Chat does not provide a stable data+export API, the import tool may require small changes from time to+time to account for changes in the Rocket.Chat database format.+Please [contact us](/help/contact-support) if you counter any problems+using this tool.++[upgrade-zulip-from-git]: https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repositorydiff --git a/templates/zerver/help/include/sidebar_index.md b/templates/zerver/help/include/sidebar_index.mdindex 097445fa7a8..23b7e0d1f01 100644--- a/templates/zerver/help/include/sidebar_index.md+++ b/templates/zerver/help/include/sidebar_index.md@@ -116,6 +116,7 @@* [Import from Mattermost](/help/import-from-mattermost)* [Import from Slack](/help/import-from-slack)* [Import from Gitter](/help/import-from-gitter)+* [Import from Rocket.Chat](/help/import-from-rocketchat)* [Roles and permissions](/help/roles-and-permissions)* [Set the default language for new users](/help/change-the-default-language-for-your-organization)* [Export your organization](/help/export-your-organization)diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 247d2779403..4afd9107f10 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -880,6 +880,7 @@ help_markdown_rules = RuleList("pattern": "[a-z][.][A-Z]","description": "Likely missing space after end of sentence","include_only": {"templates/zerver/help/"},+ "exclude_pattern": "Rocket.Chat",},{"pattern": r"\b[rR]ealm[s]?\b",