Ghost/core
naz 51c9a50c4f
Added validation layer to members import endpoint (#12131)
no issue

- Additional validation is needed for imported data because in case of bulk insertions (through knex) we bypass model layer validation - this could lead to invalid data in the database, which would be hard to fix.
- Chose validation method we use for other endpoints - through JSON Schema. It proved to be very performant (200ms overhead for 50k records). When comparing it with iterative method (validating each record separately) this was adding about 17s of overhead.
- Refactored returned values from "sanitizeInput" method to encapsulate more logic so that the caller doesn't have to calculate amount of invalid records and deal with error types
- Whole sanitizeInput method could now be easily extracted into separate module (somewhere close to members importer)
- Bumped members-csv package. It is meant to handle empty string values - '' and null, which should allow validating member records more consistently!
2020-08-17 23:28:57 +12:00
..
client@85784f4d21 Updated Ghost-Admin to v3.29.1 2020-08-11 10:46:42 +01:00
frontend Updated Stripe JS to load async in head 2020-08-17 10:16:42 +05:30
server Added validation layer to members import endpoint (#12131) 2020-08-17 23:28:57 +12:00
shared Fixed default shutdown timeout 2020-08-10 13:00:02 +01:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00