Ghost/core/server/data/schema
Nazar Gargol 00f95e7328 Migrated schedules controller to v2
closes #10060

- Implemented scheduling for posts and pages
- Added cache invalidation when scheduling
- Refactored admin token eneration function to accept existing key as parameter in tests
- Added Ghost Scheduler Integration fixture
- Added fixture for permissions for post publish action
- Migrated getScheduled method to v2
- Did not add support for 'from' and 'to' parameters as they were not used by DefaultScheduler
- This method needs rethinking in a long run as it's an ugly hack and should rather become proper endpoint that returns JSON data instead of models
- Removed unused auth middleware from v2 routes
- Added internal scheduler role
- Implemetnted transactions in v2 frame
- This takes into account scenario mentioned in c93f03b87e
- Specifically:
>if two queries happening in a transaction we have to signalise
  knex/mysql that we select for an update
  otherwise the following case happens:
  you fetch posts for an update
  a user requests comes in and updates the post (e.g. sets title to "X")
  you update the fetched posts, title would get overriden to the old one
2019-08-07 14:51:36 +02:00
..
clients Deleted unused pg.js module (#10928) 2019-07-22 12:11:19 +08:00
fixtures Migrated schedules controller to v2 2019-08-07 14:51:36 +02:00
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
default-settings.json Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00
index.js 🔥 remove database version (#7894) 2017-01-26 12:12:00 +00:00
schema.js Added Canonical URL support to posts&pages in Admin & Content API v2 (#10594) 2019-03-12 17:51:29 +08:00