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

CRM-19888 fix import to prefer default country when resolving states. #10740

Merged
merged 3 commits into from
Nov 28, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jul 24, 2017

@alifrumin
Copy link
Contributor

At the Maryland code spring, I'm gonna QA this

@alifrumin
Copy link
Contributor

Jenkins retest this please

@alifrumin
Copy link
Contributor

alifrumin commented Sep 28, 2017

I was able to replicate this bug by following the steps in the jira issue https://issues.civicrm.org/jira/browse/CRM-19888 and then tested the fix on a local site with this patch.

Instead of getting the second address as being in Guyana it was in the United States. This code works as expected. It is failing 1 check (could be related to recent buildkit issues). Otherwise seems ready to be merged

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@alifrumin are you going to lean on @colemanw to merge? I believe he is there with you :-)

@colemanw
Copy link
Member

colemanw commented Sep 29, 2017

@eileenmcnaughton

ContactTest.php:305, IncorrectExact, Priority: High
Line indented incorrectly; expected 2 spaces, found 1

ContactTest.php:312, CommaLastItem, Priority: Normal
A comma should follow the last multiline array item. Found: 'ABC'

@eileenmcnaughton
Copy link
Contributor Author

I can't even find those lines in the 2 test files I altered

@eileenmcnaughton
Copy link
Contributor Author

ie line 312 is

$this->runImport($contactValues, CRM_Import_Parser::DUPLICATE_UPDATE, CRM_Import_Parser::VALID, $mapper, $fields);

& it mentions

A comma should follow the last multiline array item. Found: 'ABC'

@alifrumin
Copy link
Contributor

good point @eileenmcnaughton, thank you for the reminder and thank you @colemanw for taking a look at this.

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

I've set it running again - I can't find the strings that are failing lint in this file

@eileenmcnaughton
Copy link
Contributor Author

test this please

The example given is the abbreviation UT is used in muliple countries and if US is the default country
it should resolve to UTAH
In fact this test is a bit silly anyway as it tests the fn in a way it is never called in
@eileenmcnaughton eileenmcnaughton merged commit 9c79310 into civicrm:master Nov 28, 2017
@eileenmcnaughton eileenmcnaughton deleted the def_country branch November 28, 2017 01:43
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
CRM-19888 fix import to prefer default country when resolving states.
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.

4 participants