0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/core/test/unit
Katharina Irrgang 7273786459
Fetch relations by default when insert/updating posts (#9568)
no issue

- required for model events
- otherwise you won't receive a full data set
  - in worst case you have to re-fetch the post
- required for the url service
  - the url service always needs relations (authors,tags) to be able to generate the url properly

@IMPORTANT
- no API change, we still return what you are asking for
  - we first edit/add the resource
  - then we fetch the data with the API options
  - @TODO: this can be optimised and will improve performance
    	   picking/selecting it from the insert/update response
- this is an internal change
2018-04-15 12:12:20 +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 Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +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