0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test
Nazar Gargol 7904c303a7 Added invalid import record errors and counts
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.
2020-06-12 19:59:36 +12:00
..
api-acceptance Added invalid import record errors and counts 2020-06-12 19:59:36 +12:00
frontend-acceptance Updated edit URLs to use consistent correct URLs 2020-06-01 08:42:11 +01:00
regression Added invalid import record errors and counts 2020-06-12 19:59:36 +12:00
unit Added responsive-image srcset attribute to image and gallery card output 2020-06-11 13:28:44 +01:00
utils Added special handling for member import with Stripe connection 2020-06-09 23:02:38 +12:00
.eslintignore
.eslintrc.json Fixed linting error 2020-04-17 11:32:29 +01:00
.jshintrc