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

dev/core#2820: Deduping produces bad results after a rule change #21509

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

monishdeb
Copy link
Member

Overview

When a dedupe rule is changed, the results appear to be cached.

Reproduction steps

  1. Create a dedupe rule on 'Last Name' weight 5, 'First Name' weight 5, threshold 5.
  2. Run a dedupe search with this rule - should show contacts with either first or last matching names
  3. Edit the dedupe rule, change the threshold to 10.
  4. Run a dedupe search with this rule

Before

Shows previous results - those with first or last matching names. Click the 'Threshold' box and note scores of 5 - below the specified threshold of 10.

After

Should only list contacts with matching first and last names where threshold score is 10.

Technical Details

Regression is caused by 9d2f6d5#diff-fe60c89ebe94bbd40114d135459371cc53708db1f2952ade6c0ce9b3468c4dabR2038 this change and affecting since 5.3.0

Fixed by correcting the cache key which is used to fetch and delete the cache of previous dedupe rule.

Comments

ping @eileenmcnaughton @aydun

@civibot
Copy link

civibot bot commented Sep 17, 2021

(Standard links)

@civibot civibot bot added the master label Sep 17, 2021
@eileenmcnaughton
Copy link
Contributor

thanks @monishdeb this was reported as a regression - should it be against the rc or don't you think it's a regression?

@eileenmcnaughton
Copy link
Contributor

oh I see - it's a very OLD regression - master is fine then!

@monishdeb
Copy link
Member Author

monishdeb commented Sep 17, 2021

oh I see - it's a very OLD regression - master is fine then!

Yep, master is fine. Also I forgot to mention a workaround, for the previous version, one can click the 'Refresh Duplicates' button on 'Find and Merge Duplicate Contacts' to get the updated list of duplicate contacts.

@aydun
Copy link
Contributor

aydun commented Sep 20, 2021

r-run: PASS

Thanks @monishdeb - that fixes it.

@eileenmcnaughton eileenmcnaughton merged commit 91660d4 into civicrm:master Sep 20, 2021
@eileenmcnaughton
Copy link
Contributor

merging based on @aydun r-run

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