Ghost/core/server/lib
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
..
common 🏗Added host config limits for member emails (#11439) 2019-12-17 19:24:27 +05:30
fs Added new fields to members CSV import (#11539) 2020-02-04 13:51:24 +08:00
image Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
mobiledoc 🐛 Fixed unnecessary "unsaved changes" modal when using HR cards 2020-01-22 11:59:13 +00:00
promise Extended sequence utility 2018-10-03 00:17:45 +02:00
security Updated to use slugify method from SDK for safe string 2019-05-07 15:33:07 +05:30
url-utils Merge branch 'master' into v3 2019-10-08 13:58:08 +01:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
request.js Set Ghost user-agent header for got requests (#10424) 2019-01-28 17:01:34 +01:00