Ghost/core/server
Jason Williams 9fe573a0c5 Refactor content deletion
- Simplify the `init` method in `models/index.js` so that it no longer
  returns a promise. Easier to use.
- Eliminates the `deleteAllContent` method from `models/index.js` as it
  can all be handled at the API layer in a single spot.
- Optimize `destroyAllContent` in `api/db.js`. Eliminates
  double-fetching every post from the database and converting it to
  JSON. Also only fetches ids from the database instead of the entire
  model.
- Eliminates the custom static method `destroy` in the Post model in
  favor of handling detaching tag relations in a single place (the
  `destroying` event). This also eliminates a big source of unneeded
  database round trips--needing to get post ids to feed into
  `Post.destroy()` which then re-fetches the post again.
2016-03-22 10:10:09 -05:00
..
api Refactor content deletion 2016-03-22 10:10:09 -05:00
apps
config Always override database config + exit tests on error 2016-03-14 15:39:59 +00:00
controllers Generate context from channelConfig, not URL 2016-03-20 12:59:25 +00:00
data Migration messaging improvements 2016-03-22 09:59:22 +00:00
errors Migration messaging improvements 2016-03-22 09:59:22 +00:00
events
helpers Merge pull request #6616 from ErisDS/meta-schema-fix 2016-03-21 10:22:06 +01:00
mail
middleware Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
models Refactor content deletion 2016-03-22 10:10:09 -05:00
permissions
routes Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00
storage Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
translations Merge pull request #6579 from jaswilli/auth-api 2016-03-08 15:54:34 +01:00
utils Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
views Fixup broken error page styles 2015-06-08 12:14:58 +01:00
filters.js
ghost-server.js
i18n.js Fix jsDoc on i18n.t() 2016-02-22 01:57:22 +01:00
index.js Refactor content deletion 2016-03-22 10:10:09 -05:00
update-check.js deps: bluebird@3.3.3 2016-03-01 15:17:20 -06:00