Migration path from Enterprise instance of Stack Overflow #147
Replies: 3 comments 5 replies
|
There's some discussion about this at #126 But basically, there's no supported way to migrate from another system as of now. It would be nice to get some scripts or CLI tool for the migration now that it's possible to call the Backstage APIs with static API tokens: backstage/backstage#24257 I cannot participate in this work much as I don't have access to any systems like StackOverflow to do migration from so it's pretty hard to test things. Of course I can try to help as much as possible if someone takes this challenge :) |
|
Hi @drodil - after discussion, we decided to prioritise implementing a RAG-based feature on top of TechDocs (instead of adding the q&a Backstage plugin and importing the SO data). |
|
So, we went with this approach and successfully migrated the data. StackExchange offers a script that allows you to export all posts, articles and some other data: https://github.com/StackExchange/so4t_data_export We then created another script that would inject the data into the Q&A DB with SQL statements with some custom filtering. We linked questions to existing entities from the catalog based on a mapping that we created manually - mapped tags from Stack to entities from Backstage (wasn't a lot of work). Where we couldn't match the original author with a Backstage user, we would set the author to user:default/anonymous. Note that you want to run this script on an empty DB unless you want to deal with the hassle of reconciling relationships with existing tags and entities. We migrated around 5k questions this way. Everything worked perfectly. |
Uh oh!
There was an error while loading. Please reload this page.
Curious if there is a migration path from an Enterprise instance of Stack Overflow. Or, if anybody has done something similar.
All reactions