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

[Import] Use table rather than csvs for no-match & unparsed #23418

Merged
merged 5 commits into from
May 10, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Use table rather than csvs for no-match & unparsed

The user experience should be unchanged - ie importing the following file with a mapping of first_name, last_name, contact sub type should result in

contact_sub_type.csv

image

Before

CSVs for No match and 'unparsed' are compiled during import

After

The temp table is updated, as is done with errors, duplicates, and it downloadable on the summary form

Technical Details

This rips out a fair bit of code (yay) and also has tests for the full flow. It builds on other open PRs which can be rebased out if merged first

Comments

@civibot
Copy link

civibot bot commented May 10, 2022

(Standard links)

@civibot civibot bot added the master label May 10, 2022
@eileenmcnaughton eileenmcnaughton changed the title Use table rather than csvs for no-match & unparsed [Import] Use table rather than csvs for no-match & unparsed May 10, 2022
@monishdeb
Copy link
Member

Tested on local, works fine. The added unit-test correctly capture the different parse errors and well defined pattern here

@monishdeb monishdeb merged commit bad046b into civicrm:master May 10, 2022
@eileenmcnaughton eileenmcnaughton deleted the import_valid3 branch May 10, 2022 19:02
@eileenmcnaughton
Copy link
Contributor Author

yay - thanks @monishdeb !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants