mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
no issue - This new format allows to return additional metadata with failed import records. The data for invalid records is returned in following format: ``` { count: {count_of_invalid_records}, errors: [{ message: "Members not imported. Members with duplicate Stripe customer ids are not allowed." // message field of the error context: "Attempting to import members with duplicate Stripe customer ids." // context field of the error help: "Remove duplicate Stripe customer ids from the import file, and re-run the import." // help field of the error count: 2 // count of this specific error }] }; - Errors are grouped by their context fields because message fields sometimes can contain unique information like Stripe customer id, which would produce too many errors in case of bigger datasets. |
||
---|---|---|
.. | ||
api | ||
exporter | ||
importer | ||
migrations | ||
models | ||
site | ||
update-check | ||
README.md |
Regression Tests
This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.
The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.