Ghost/test/api-acceptance/admin
Hannah Wolfe d541a14826 Change theme uploads to move & delete at end
- Currently theme uploads delete the existing theme before copying the new files into place
- If something goes wrong with the delete action, you will end up in a bad state
   - Some or all of the files may be deleted, but now Ghost won't try to put the new theme in place, instead returning an error
   - This leaves you with an invalid active theme and a broken site
- Unlike delete, move is a one-hit operation that succeeds or fails, there moving a theme is safer than deleting
- This updated code moves the old theme to a folder with the name [theme-name]-[uuid] before copying the new theme into place
- Even if this fails, the files should not be gone
- There's a cleanup operation to remove the theme backup at the end, but we don't care too much if this fails
2020-06-08 16:12:17 +01:00
..
actions_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
config_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
db_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
email_preview_spec.js 🐛 Fixed test email permissions for non-owner roles 2020-06-02 14:54:50 +05:30
emails_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
images_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
integrations_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
invites_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
key_authentication_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
labels_spec.js Removed cache invalidation header when adding label through Amdin API 2020-06-04 23:44:19 +12:00
mail_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
members_spec.js Added ?search= param to Admin API members endpoint (#11854) 2020-05-28 10:14:02 +01:00
notifications_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
oembed_spec.js 🐛 Improved error message output when oembed request fails 2020-06-08 15:06:00 +01:00
pages_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
posts_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
roles_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
settings_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
slugs_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
tags_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
themes_spec.js Change theme uploads to move & delete at end 2020-06-08 16:12:17 +01:00
users_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
utils.js Added label to known filter params for members 2020-05-21 18:44:52 +01:00
webhooks_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00