Ghost/core/server/models
kirrg001 cca3317a11 Simplfied action trigger in base model
refs #10431

- the model layer triggers a couple of events on resource update
  e.g. post to page -> post.deleted, post.added
- the resource_type must be always "post", because "page" is not an official model (Bookshelf won't be able to resolve the resource anymore)
- the action streams looks very confusion if you see deleted and added actions when toggling the post to a static page
- therefor the easiest approach for now is to only store actions for: added, edited, deleted
- and we will add the context information asap
  - e.g. you will see that status was changed from "draft" to "published"
- we can also introduce extra published actions if we want
- relying on the internal event system right now makes things just more complicated and we want to keep it simple
2019-02-06 22:21:06 +01:00
..
base Simplfied action trigger in base model 2019-02-06 22:21:06 +01:00
plugins Introduced model._changed 2019-02-03 13:02:26 +01:00
relations Introduced model._changed 2019-02-03 13:02:26 +01:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
action.js Added model implementation for actions 2019-02-06 21:36:09 +01:00
api-key.js Shortened admin key length (#10418) 2019-01-24 13:46:33 +00: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 Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
author.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
index.js Added model implementation for actions 2019-02-06 21:36:09 +01:00
integration.js Added HTTP BREAD for integrations resource (#9985) 2018-10-18 14:03:56 +01:00
invite.js Updated permissible methods for hasApiKeyPermissions (#9970) 2019-01-18 13:39:53 +01:00
member.js Added members related db changes and models 2018-12-11 11:53:55 +07:00
mobiledoc-revision.js Added mobiledoc revisions functionality 2018-10-09 15:31:09 +02:00
permission.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js Simplfied action trigger in base model 2019-02-06 22:21:06 +01:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Updated permissible methods for hasApiKeyPermissions (#9970) 2019-01-18 13:39:53 +01:00
session.js Removed user_id constraint when upserting session (#10085) 2018-10-30 16:15:48 +07:00
settings.js Added members related db changes and models 2018-12-11 11:53:55 +07:00
subscriber.js Moved more allowed options for findPage to base model 2019-01-29 23:29:06 +01:00
tag-public.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
tag.js Moved more allowed options for findPage to base model 2019-01-29 23:29:06 +01:00
user.js Moved more allowed options for findPage to base model 2019-01-29 23:29:06 +01:00
webhook.js Updated webhooks schema and add relation (#10018) 2018-10-17 18:17:13 +07:00