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

Contact import - extract common code, make tags & groups queue-friendly #23680

Merged
merged 6 commits into from
Jun 3, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 3, 2022

Overview

Extract common part of MapTable.tpl

Before

Most of the file is generic & could be shared with other imports - but there is just one bit of js plonked in the middle holding us back

After

The js is still in the contact specific file - but the rest is in CRM/Import/MapTableCommon.tpl

Screenshots from my after r-run

image

image

Technical Details

Any issues would be very obvious on r-run - which I did

There is already MapTable in CRM/Import/ - it is awful - {section} anyone? This is the path to migrate off

Comments

Putting up a separate PR to use this in Contribution flow - which has a bug to fix - but that is a separate r-run flow

@civibot
Copy link

civibot bot commented Jun 3, 2022

(Standard links)

@civibot civibot bot added the master label Jun 3, 2022
@eileenmcnaughton eileenmcnaughton changed the title Extract common part of MapTable.tpl Contact import - extract common code, make tags & groups queue-friendly Jun 3, 2022
The new way is
- create the tags & groups at the form layer & only the ids
go to the parser - which adds them

This patch should be a nullop in terms of the efficiency of these
@colemanw colemanw merged commit aa07d4f into civicrm:master Jun 3, 2022
@colemanw colemanw deleted the contact_map branch June 3, 2022 16:54
@colemanw
Copy link
Member

colemanw commented Jun 3, 2022

🤠

@darrick
Copy link
Contributor

darrick commented Jun 4, 2022

I spoke to soon on that last part. Line 307 isn't squashing a previously set status. But DUPLICATE is only set when SKIPPING.

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

Successfully merging this pull request may close these issues.

3 participants