Ghost/ghost/members-importer/test/fixtures
Naz 90768e9985
Added strict field mapping to member CSV importer
closes https://github.com/TryGhost/Toolbox/issues/430

- The members importer used to  import all fields present in the uploaded CSV if the headers match, even if they're not mapped in the UI. This behavior has lead to have misleading consequences and "hidden" features. For example, if the field was present but intentionally left as "Not imported" in the UI the field would still get imported.
- Having a strict list of supported import fields also allows for manageable long-term maintenance of the CSV Import API and detect/communicate changes when they happen.
- The list of the current default field mapping is:

    email: 'email',
    name: 'name',
    note: 'note',
    subscribed_to_emails: 'subscribed',
    created_at: 'created_at',
    complimentary_plan: 'complimentary_plan',
    stripe_customer_id: 'stripe_customer_id',
    labels: 'labels',
    products: 'products'
2022-10-19 18:10:40 +08:00
..
member-csv-export.csv Added strict field mapping to member CSV importer 2022-10-19 18:10:40 +08:00
single-column-with-header.csv Added very basic unit test coverage to cover happy path import 2021-07-22 01:53:21 +12:00
subscribed-to-emails-header.csv Moved header mapping configuration to importer 2022-10-19 18:10:40 +08:00