I’m working on an import test from another board software, and I’m running into an issue with trying to import bookmarks. The base importer has the create_bookmarks function, and I’m passing in user_id and post_id values. The script does not throw any errors, and it shows the normal progress output:
25 / 25 (100.0%)
However, no bookmarks are created. The bookmarks table is empty (checking via the data explorer). Any ideas on why this would not be working as expected?
Ah, I may have missed the importers. I will take a look first thing today (I start in about an hour). There is a rake task you can run to sync bookmarks from post actions into the new table in the meantime.
bundle exec rake bookmarks:sync_to_table
This is a non destructive action and can be run as many times as you want.
Hmm. I looked in the post_actions table and it is empty as well. Is the import code using an outdated process here? I was considering just doing a direct insert query into the database but I’ll see if I can dig a bit deeper here as well.
I checked, and I did miss create_bookmarks in the base import script. I will get a PR up for that today so it creates bookmarks in the new table. It is very odd that it’s not making PostAction bookmarks for you though.