ladybug-tools / ladybug-tools.github.io

:globe_with_meridians: Ladybug Tools web page
http://ladybug-tools.github.io/
5 stars 9 forks source link

Auto generate the content of the new discourse website from the Grasshopper forum #19

Closed mostaphaRoudsari closed 6 years ago

mostaphaRoudsari commented 7 years ago

We need to move all the current discussions from Grasshopper forum to the new Discourse page.

Discourse provides a REST API which should let us do it assuming we can get the initial data from the Grasshopper website.

  1. Create the users This should be done without sending the verification email right away. Follow these instructions carefully.

  2. Create the posts/topics and change the owner to the correct user. Here is a good discussion on how to seed a new forum.

  3. Update email address and send a password reset to email address. Here is how this should be done!. Before sending these emails we need to send out an email and let everyone know about the changes.

theo-armour commented 7 years ago

btw, there's no sign up or register icon

On Mon, Jul 24, 2017 at 3:27 PM, Mostapha Sadeghipour Roudsari < notifications@github.com> wrote:

We need to move all the current discussions from Grasshopper forum http://www.grasshopper3d.com/group/ladybug to the new Discourse page http://discourse.ladybug.tools/.

Discourse provides a REST API which should let us do it assuming we can get the initial data from the Grasshopper website.

1.

Create the users This should be done without sending the verification email right away. Follow these instructions carefully https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133/3 . 2.

Create the posts/topics and change the owner to the correct user. Here is a good discussion on how to seed a new forum https://meta.discourse.org/t/seeding-a-new-forum-by-creating-users-and-content/49345/15 . 3.

Send a password reset email to users. Here is how this should be done! https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133/19. Before sending these emails we need to send out an email and let everyone know about the changes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ladybug-tools/ladybug-tools.github.io/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhbKhVimffMURIiyrj3o2Gg2lDLRdxqks5sRRo5gaJpZM4Oh0ea .

mostaphaRoudsari commented 7 years ago

Thanks @theo-armour. Yes. It's deactivated intentionally. We don't want people to sign in right now before we transfer the discussions.

mostaphaRoudsari commented 7 years ago

Data is exported from Grasshopper 3d successfully. I copied the files here and will get back to this later once I address honeybee issues: https://github.com/mostaphaRoudsari/grasshopper-forum

Note to self for when I get back to this:

Seems the right way to do massive import is not using the API. The suggestion is to write an importer that creates the sql files which can be uploaded to discourse. There is no documentation and the source code is in available in ruby. It probably shouldn't be that hard to reverse engineer the code or just modify one of the importers to parse our json files.

devang-chauhan commented 6 years ago

Hi @mostaphaRoudsari and @theo-armour,

Adding to this thread with a suggestion. There should be some guidelines about asking for help on the forum like the one David has here.

Thanks, Devang

mostaphaRoudsari commented 6 years ago

@devngc 💯! discourse has a specific page for this: http://forum.ladybug.tools/t/welcome-to-ladybug-tools-forum/8 Do you have a list in mind?

devang-chauhan commented 6 years ago

@mostaphaRoudsari, Cool. I will put my thoughts on a google doc and will share with you.

mostaphaRoudsari commented 6 years ago

Done and done! I also closed all the discussion on the Grasshopper forum. This will ensure that everyone has to use the new forum to continue the conversation.