Ghost/test/utils
naz ffd866cedc
💥 Reduced default exports content for DB APIs (#12818)
refs https://github.com/TryGhost/Team/issues/555

- Export files included a lot of data which was not used in the importer, for example: members,  labels, migrations and many more. This lead to a lot of clutter in the import files and made it hard to reason about their purpose.
- The main purpose of exports - is to export importable resources. These are posts, tags, and users. The rest of data like members or migrations either have their own importer (like CSV importer for members) or does not and should not have any ways to be imported.
- These changes are in now way complete. It's a first step towards resource-based exports which could be properly versioned in the future on API level and not be a mirror of the DB structure.
- This is sort of a breaking change. But we are doing it because: (1) its an internal API that should not be used by external clients, (2) there was no public contract to have this API stable at any point, (3) we really need to get back the control over export files structure and size
- In case an external client was dependent on some structure of the exported json file they can still pass in ALL of previously exported data by passing table names in `include` query parameter.
2021-03-25 19:27:49 +13:00
..
fixtures 💥 Reduced default exports content for DB APIs (#12818) 2021-03-25 19:27:49 +13:00
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js 💡 Enabled foreign key checks on sqlite3 2021-03-02 11:13:19 +01:00
fixture-utils.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
index.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
old-integration-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
urlUtils.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00