Ghost/core/test/acceptance/old/admin
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
..
actions_spec.js Updated audience validation for admin api tokens (#10519) 2019-02-23 12:51:21 +01:00
config_spec.js Returned prefix for site & config response 2019-02-25 13:24:19 +01:00
db_spec.js Updated import to only show warning when apps exist 2019-04-16 11:19:17 +02:00
images_spec.js Combined /images* endpoints into /images/upload 2019-02-25 19:15:16 +07:00
integrations_spec.js Ensured Admin API cannot fetch internal integrations (#10501) 2019-07-24 11:52:55 +02:00
invites_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
key_authentication_spec.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
mail_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
notifications_spec.js 🎨 Made notifications dismissible per user 2019-04-19 09:43:14 +02:00
oembed_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
pages_spec.js 🐛 Fixed Admin API v2 wasn't returning preview url 2019-03-21 19:08:38 +01:00
posts_spec.js 🐛 Fixed Admin API v2 wasn't returning preview url 2019-03-21 19:08:38 +01:00
roles_spec.js Migrated schedules controller to v2 2019-08-07 14:51:36 +02:00
settings_spec.js Added global site SEO fields in Admin API (#10923) 2019-07-18 16:24:34 +02:00
slugs_spec.js Reduced & moved acceptance tests for content API 2019-02-04 15:58:18 +01:00
tags_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00
themes_spec.js Renamed theme upload file field name 2019-02-25 13:26:03 +01:00
users_spec.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
utils.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
webhooks_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00