0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/core/server
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
..
adapters Bumped knex & bookshelf dependencies (#10404) 2019-01-21 21:53:11 +01:00
api Redefined context.integration 2019-02-06 21:36:09 +01:00
apps Removed members internal app (#10379) 2019-01-17 12:03:40 +01:00
config Removed members internal app (#10379) 2019-01-17 12:03:40 +01:00
data Added permissions for actions including migration 2019-02-06 18:59:09 +01:00
helpers Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
lib Added new admin API for members (#10435) 2019-01-30 17:06:09 +05:30
models Simplfied action trigger in base model 2019-02-06 22:21:06 +01:00
public Removed change frequency and priority fields from sitemap generator (#9771) 2018-09-24 19:16:31 +02:00
services Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
translations Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
views Aliased {{@blog}} as {{@site}} in the theme API 2019-01-04 12:17:32 +00:00
web Allowed browse actions for integrations 2019-02-06 21:36:09 +01:00
analytics-events.js Added back "theme.uploaded" analytics event (#10450) 2019-02-05 17:38:40 +01:00
filters.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
ghost-server.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
index.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00