status-go
status-go copied to clipboard
feat: introduce API to import discord community
trafficstars
THIS IS A WIP
Here's what it does so far:
- It adds a new
ImportDiscordCommunityRPC API that takesfilesToImport []stringand aCreateCommunityRequest - It creates a community
- It creates community categories based on extracted discord categories
- It creates community channels based on extracted discord channels
- It converts extracted
DiscordMessage's toChatMessage's and stores them in the DB
What still needs to be done:
- [ ] Importing large amounts of data sometimes loses channels (Needs investigation)
- [ ] Provide an async version as importing large data takes long
- [ ] Introduce signals so clients know progress of import
- [ ] Figure out how to handle attachements/embedds/assets (chances are this has to be done in the client)
Pull Request Checklist
- [ ] Have you updated the documentation, if impacted (e.g. docs.status.im)?
- [ ] Have you tested changes with mobile?
- [ ] Have you tested changes with desktop?
Jenkins Builds
Click to see older builds (3)
| :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result |
|---|---|---|---|---|---|---|
| :heavy_check_mark: | 74d9c7f3 | #1 | 2022-07-21 20:38:30 | ~2 min | linux |
:package:zip |
| :heavy_check_mark: | 74d9c7f3 | #1 | 2022-07-21 20:40:33 | ~4 min | android |
:package:aar |
| :heavy_check_mark: | 74d9c7f3 | #1 | 2022-07-21 20:40:54 | ~4 min | ios |
:package:zip |
| :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result |
|---|---|---|---|---|---|---|
| :heavy_check_mark: | 9874f422 | #2 | 2022-07-26 11:54:24 | ~4 min | android |
:package:aar |
| :heavy_check_mark: | 9874f422 | #2 | 2022-07-26 11:55:00 | ~5 min | ios |
:package:zip |
| :heavy_check_mark: | 9874f422 | #2 | 2022-07-26 11:56:06 | ~6 min | linux |
:package:zip |
| :heavy_check_mark: | f9418f2c | #3 | 2022-07-27 17:14:34 | ~1 min | linux |
:package:zip |
| :heavy_check_mark: | f9418f2c | #3 | 2022-07-27 17:15:21 | ~2 min | ios |
:package:zip |
| :heavy_check_mark: | f9418f2c | #3 | 2022-07-27 17:17:52 | ~5 min | android |
:package:aar |