0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/unit/data
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
..
db Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
exporter Updated backup file names to include timestamp (#10607) 2019-03-13 21:06:05 +01:00
importer 🐛 Ensured import does not override private setting (#10882) 2019-08-06 16:15:40 +08:00
meta Added global site SEO fields to be used in theme helpers (#10930) 2019-07-25 11:08:29 +02:00
schema Migrated schedules controller to v2 2019-08-07 14:51:36 +02:00
validation Removed api integration tests (#9940) 2018-10-06 22:13:52 +02:00
xml/sitemap Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00