2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server
Hannah Wolfe b2659d0cbb Refactor & test fixture migrations
refs #6301

Fixtures:
- Removed all the old (and now broken) 003 fixture upgrades
- Split the 004 fixture upgrade tasks out, each into their own file
- Improved the versioning code that figured out which upgrades we should do
- Added lots of test coverage to make sure all the fixtures are still being run correctly.

Permissions fixtures:
- Changed the code that was populating permissions fixtures to be more automated & based only on what is in the permissions.json file.
- Added lots of test coverage to make sure all the permissions are still being created correctly.

Merging the two things:
- Merged the content of permissions.json and fixtures.json into fixtures.json, but using the new structure from permissions.json.
- Changed to use the new automated model & relation creation for all fixtures, not just permissions.
- The only thing that can't be auto-populated just now is the owner creation, I think that's important enough to do separately.
- There were (so far) never any permission updates, so code for updating fixtures stays the same through the merge.
- This results in two clear code paths: populate (fill out a brand new DB) and update (make any changes since the last version)

Test coverage is now 100% across both updates and populations.
2016-03-03 09:03:37 +00:00
..
api Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00
apps Harvest server side strings 2015-12-19 12:12:16 +01:00
config Move db connection out of config 2016-02-12 13:56:23 +00:00
controllers Restructure Configuration API endpoint 2016-02-19 18:49:23 +00:00
data Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
errors Disambiguate between error code & status code 2016-02-17 15:20:49 +00:00
events Set a higher maxListeners value 2015-10-09 19:27:49 +01:00
helpers Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
mail Refactor mail service 2016-02-10 16:31:42 -06:00
middleware Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
models Move client secret logic into the model 2016-02-18 20:33:37 +00:00
permissions Harvest server side strings 2015-12-19 12:12:16 +01:00
routes Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00
storage Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
translations Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
utils Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
views Fixup broken error page styles 2015-06-08 12:14:58 +01:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Harvest server side strings 2015-12-19 12:12:16 +01:00
i18n.js Fix jsDoc on i18n.t() 2016-02-22 01:57:22 +01:00
index.js Moves builFilesExist to startup-checks 2016-02-14 18:28:37 +00:00
update-check.js Harvest server side strings 2015-12-19 12:12:16 +01:00