mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FIX: Change base importer to create new Bookmark records (#9603)
Also add a spec and fixture with a mock importer that we can use to test the create_X methods of the base importer
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"bookmarks":[
|
||||
{
|
||||
"post_id":10,
|
||||
"user_id":20
|
||||
},
|
||||
{
|
||||
"post_id":11,
|
||||
"user_id":20
|
||||
},
|
||||
{
|
||||
"post_id":12,
|
||||
"user_id":20
|
||||
},
|
||||
{
|
||||
"post_id":13,
|
||||
"user_id":20
|
||||
},
|
||||
{
|
||||
"post_id":14,
|
||||
"user_id":20
|
||||
}
|
||||
],
|
||||
"posts":[
|
||||
{
|
||||
"user_id":20,
|
||||
"id":10,
|
||||
"raw":"This is test post 1"
|
||||
},
|
||||
{
|
||||
"user_id":20,
|
||||
"id":11,
|
||||
"raw":"This is test post 2"
|
||||
},
|
||||
{
|
||||
"user_id":20,
|
||||
"id":12,
|
||||
"raw":"This is test post 3"
|
||||
},
|
||||
{
|
||||
"user_id":20,
|
||||
"id":13,
|
||||
"raw":"This is test post 4"
|
||||
},
|
||||
{
|
||||
"user_id":20,
|
||||
"id":14,
|
||||
"raw":"This is test post 5"
|
||||
}
|
||||
],
|
||||
"users":[
|
||||
{
|
||||
"id":20,
|
||||
"email":"testimportuser@test.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user