Ghost/core/server/models
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
..
base Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
plugins Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
relations 🐛 Fixed importer bug: can't resolve authors relation 2018-04-10 01:10:06 +02:00
accesstoken.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
invite.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
settings.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
subscriber.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
tag.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
user.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
webhook.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00