Socialengine importer

Has anyone hacked together an import script from Socialengine to Discourse? I’d hate to reinvent the wheel here.

「いいね!」 1

It doesn’t look like it. Can you get a database dump from them? If so, you can use one of the existing importers as a model. (See discourse/script/import_scripts at main · discourse/discourse · GitHub)

「いいね!」 2

Yea, I didnt find anything either. Should be easy enough to import users and forums. I think forums/topics/posts become categories and their posts, and the users should just come across. I pull nightly backups from my site. I can load it into pgadmin and export out a CSV of the tables.

「いいね!」 1

Most importers pull from an sql database. Most use mysql, but there may be a couple that use postgres. You definitely want to avoid csv.

「いいね!」 1

このスレッドをネクロ(復活)させますが、ついにこれを機能させ、SocialEngineフォーラムをDiscourseにインポートすることができました。

かなりのハッキングと醜いコードが必要でしたが、うまくいきました。約4800人のユーザーと約39万件の投稿です。ソースDBがしばらくするとタイムアウトするため、投稿のインポートはチャンクで行いました。インポート後の処理はたくさんありましたが、全体的にメンバーは満足しているようです。

コードをある程度クリーンアップして、「ここから始められますが、ほとんどの場合うまくいかないでしょう」という出発点として投稿する*かもしれません。

「いいね!」 3

脅迫された通り、コードを整理し(FIXME、HACKなどのタグとppデバッグ出力をすべて削除)、簡単なREADMEを作成してGitlabにアップロードしました。

コードは醜く、ハッキーで、私にとっては機能しました。他の誰にとっても機能するとは主張しません。警告しておきます。

「いいね!」 2