status-go icon indicating copy to clipboard operation
status-go copied to clipboard

feat: introduce API to import discord community

Open 0x-r4bbit opened this issue 3 years ago • 2 comments
trafficstars

THIS IS A WIP

Here's what it does so far:

  1. It adds a new ImportDiscordCommunity RPC API that takes filesToImport []string and a CreateCommunityRequest
  2. It creates a community
  3. It creates community categories based on extracted discord categories
  4. It creates community channels based on extracted discord channels
  5. It converts extracted DiscordMessage's to ChatMessage'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)

0x-r4bbit avatar Jul 21 '22 20:07 0x-r4bbit

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?

status-github-bot[bot] avatar Jul 21 '22 20:07 status-github-bot[bot]

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

status-im-auto avatar Jul 21 '22 20:07 status-im-auto