Thanks for the info, @sam. I didn’t realize that. FYI, the task did work just a few days ago (for me at least) without issues. After an import I was able to run it successfully and it did rebuild user actions as expected.
Instead of running this task then, is there a preferred way to rebuild this data (or place to store it initially during an import) in order for the data to be properly used by Discourse?
For example, I’ve managed to pull in all pre-Discourse post like history and properly map to all fields in the user_action table. The important part of achieving this seemed to be running the above rake command, because it then showed an accurate like history for each user (most liked, likes given, received, etc). If the above rake will be removed, do you mind pointing me in the right direction for where else in the database user actions need to be stored in order for them to display properly in profiles and user stats? Is it just crunched and saved to the user_stats table as integers or is there another place some of this goes?
Thanks!