Ghost/core/server/lib/fs
Naz Gargol c295435b41
Added new fields to members CSV import (#11539)
no issue

- New fields that are accepted through members CSV import endpoint are:
  - `subscribed_to_emails` - corresponds to `subscribed` flag in API
  - `stripe_customer_id` - links existing Stripe customer to created member
  - `complimentary_plan` - flag controlling "Complimentary" plan subscription creation for imported member

- Noteworthy exception in field naming - `subscribed_to_emails` that corresponds to `subscribed` API flag present on members resources. It's a special case of CSV format, where users can be less technical it's more explicit to what the flag does (also the same naming is applied in the Admin UI)

- Failing to either link Stripe customer or assign "Complimentary" subscription to imported member behaves in a transaction-like manner - imported record is not created in the database. This is needed to be able to retry imports when it fails for reasons like connectivity failure with Stripe or Stripe miss-configuration.

- To avoid conflicts with linking same Stripe customer to multiple members there is a special handling for duplicate `stripe_customer_id` fields. Records with duplicates are removed from imported set.
2020-02-04 13:51:24 +08:00
..
package-json Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
format-csv.js Added new fields to members CSV import (#11539) 2020-02-04 13:51:24 +08:00
index.js Added new fields to members CSV import (#11539) 2020-02-04 13:51:24 +08:00
read-csv.js 🐛 Fixed invalid imported subscribers count (#10229) 2018-12-03 20:45:55 +01:00
zip-folder.js 🐛 Ignored node_modules dir when archiving (#10969) 2019-08-06 16:17:41 +08:00