Ghost/test
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
..
api-acceptance Change theme uploads to move & delete at end 2020-06-08 16:12:17 +01:00
frontend-acceptance Updated edit URLs to use consistent correct URLs 2020-06-01 08:42:11 +01:00
regression Added custom label assignment to imported members 2020-06-05 16:22:09 +12:00
unit Merge pull request from GHSA-4m2q-w26j-h268 2020-06-02 14:30:10 +01:00
utils Added custom label assignment to imported members 2020-06-05 16:22:09 +12:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Fixed linting error 2020-04-17 11:32:29 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00