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

Switch Contact import to use new v4 dedupe lookup #24401

Merged
merged 2 commits into from
Aug 29, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Switch Contact import to use new v4 dedupe lookup

Before

Legacy method used

After

Switches to use the new api method #24384

Technical Details

I focussed on the contact import first as it has excellent test cover - but I'll try the Contribution one with this next

Comments

@civibot
Copy link

civibot bot commented Aug 29, 2022

(Standard links)

@civibot civibot bot added the master label Aug 29, 2022
@eileenmcnaughton eileenmcnaughton force-pushed the member_import branch 2 times, most recently from 41d4d71 to d5920b1 Compare August 29, 2022 03:56
@eileenmcnaughton eileenmcnaughton force-pushed the member_import branch 3 times, most recently from 00aae2c to 03d315d Compare August 29, 2022 08:28
protected function getPossibleContactMatch(array $params, ?int $extIDMatch, ?int $dedupeRuleID): ?int {
$checkParams = ['check_permissions' => FALSE, 'match' => $params, 'dedupe_rule_id' => $dedupeRuleID];
$possibleMatches = civicrm_api3('Contact', 'duplicatecheck', $checkParams);
protected function getPossibleContactMatch(array $params, ?int $extIDMatch, $dedupeRuleID): ?int {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto to my comment on the contribution PR

@colemanw
Copy link
Member

Code looks good as does test cover. MOP.

@eileenmcnaughton
Copy link
Contributor Author

Unrelated fail

@eileenmcnaughton eileenmcnaughton merged commit 5f12cc8 into civicrm:master Aug 29, 2022
@eileenmcnaughton eileenmcnaughton deleted the member_import branch August 29, 2022 22:24
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