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

[Import] [REF] code cleanup & test on the code to 'guess the intended field from the column name' #15220

Merged
merged 2 commits into from
Sep 5, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 5, 2019

Overview

Minor cleanup

Before

Less readable, untested

After

More readable, tested

Technical Details

This gets us away from using the form session to pass around metadata & makes the functio testable.

In this case the metadata i the 'header pattern' from the xml - it's a bit of regex intended to look at the incoming column header & see if it is a match for any of our fields. Neat idea. It would be cool to hone it a bit but this just standardises how it is loaded

Comments

@civibot
Copy link

civibot bot commented Sep 5, 2019

(Standard links)

@civibot civibot bot added the master label Sep 5, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the headers branch 2 times, most recently from a074e3e to 06b05e0 Compare September 5, 2019 04:23
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton eileenmcnaughton changed the title [Import] {ref] code cleanup & test on the code to 'guess the intended field from the column name' [Import] [REF] code cleanup & test on the code to 'guess the intended field from the column name' Sep 5, 2019
@seamuslee001
Copy link
Contributor

@eileenmcnaughton needs a rebase now

This gets us away from using the form session to pass around metadata & makes it testable.
@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 thanks - done

@seamuslee001
Copy link
Contributor

looks fine to me added MOP

@eileenmcnaughton eileenmcnaughton merged commit 5decfcf into civicrm:master Sep 5, 2019
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