Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Members background importer #12472

Merged
merged 7 commits into from
Dec 9, 2020
Merged

Conversation

allouis
Copy link
Contributor

@allouis allouis commented Dec 9, 2020

no-issue

This adds a new importer module to the members service, and updates the canary API to use this importer, performing the import in a background job when the import will take too long to complete in a reasonable time

no-issue

We are rewriting the Members CSV importer to use background jobs, the
batched importer will no longer be used locally.
no-issue

The new import flow does not use prevalidation of the CSV file, so we
have no use for this anymore.
no-issue

This will be used to generate email content used for notifying users
that their import has been completed.
no-issue

This module encapsulates the work around performing imports, it
currently uses the concept of a "Job" which at the moment is not
persisted to the database, however when we want to look at resuming
imports after a server restart, this should give us the flexibility to
do it.
no-issue

This will allow the controller to be updated to use the new importer
no-issue

- Updates members-api to throw errors when attempting to link to
  stripe customers if it is not configured, which allows us to include
  the errors in the CSV

- Updates members-csv to handle the header mappings as well as parsing
  the values so that we can read a CSV file and get back valid member
  objects
no-issue

This completely replaces the old import functionality with the new
importer!
@allouis allouis merged commit 32fe260 into TryGhost:master Dec 9, 2020
@allouis allouis deleted the members-importer-rc branch December 9, 2020 19:26
rishabhgrg added a commit to TryGhost/Admin that referenced this pull request Dec 9, 2020
no refs
depends on TryGhost/Ghost#12472

The members CSV importer gets an overhaul and works with new importer module in members service, performing the import in a background job when the import will take too long to complete in a reasonable time and send an email with data on completion. Also includes updated CSV mapping UI and error handling to allow easier import from different type of exports.

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
Co-authored-by: Peter Zimon <zimo@ghost.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant