Ghost/core/test/unit
kirrg001 d209a4d013 🐛 Fixed importer bug: can't resolve authors relation
closes #9547

- you setup a blog with the following owner:
  - email: test@ghost.org
  - name: test
  - slug: test
- now you import a JSON db file, which holds the exact same owner
  - this owner won't be imported, because it's a duplicate
  - but the slug is different (!)
- the importer tries to find a matching existing user, but won't find anything
- the importer then send an empty authors array `post.authors=[]` into the model layer
- this is not allowed -> this would mean, you are actively trying to unset all authors
2018-04-10 01:10:06 +02:00
..
adapters Use Promise support which was added in fs-extra 3.x 2017-12-13 20:57:11 +01:00
api Extended the API object validation 2018-04-05 18:51:58 +02:00
apps Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
data Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
helpers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
lib Koenig - Output captions for image and embed cards 2018-03-14 18:21:30 +00:00
models 🐛 Fixed importer bug: can't resolve authors relation 2018-04-10 01:10:06 +02:00
public Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
services Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
web Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00