-
-
Notifications
You must be signed in to change notification settings - Fork 824
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#1230 [Dedupe] Do not geocode while merging, rely on existing values #15154
Conversation
This is a performance fix when merging - on a batch merge job it can be kinda crazy & we already have geocode data for the contacts
(Standard links)
|
test this please |
test this please |
1 similar comment
test this please |
I can do an r-run just an initial comment: I'm not familiar with where else the skip parameter can be set or if this code can be run outside the UI but even if it's not possible right now for the skip parameter to have been previously set and even if CRM_Utils_Address::format() and anything it might call doesn't use it currently and even though there is no other code in that block currently, it might be more future proof to save the old value and replace after?
Also to address the other comment clearly fixAddress() fixes the address (grin). There's even a comment in there explaining that because of "network latency" sometimes non-numeric string values manage to get in there so they need to be ignored... Ahh good old 2007. |
|
Merging per review. In response to comment one $value is really a throw-away parameter so resetting it is really just for clarity On the edge case - I think if some addresses are not geocoding them that is a system issue & we shouldn't slow down deduping for it |
It's currently a throwaway parameter, but in the future there might be more code in that block, or format() might end up using it or passing it on to something that does. But I don't see it as a blocker. |
Please please we want less not more code there.... |
Overview
This is a performance fix when merging - don't do geocoding when merging - we already have
geocode data for the contacts. We also move the 'whole address' so shouldn't re-geocode for more info
https://issues.civicrm.org/jira/browse/CRM-21786
Before
Geocoding calls happen during merging
After
No calls (existing geocode info in use)
Technical Details
Comments
@pfigel @lcdservices