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

Contact Import cleanup - includes fixes to contact matchine #23666

Merged
merged 20 commits into from
Jun 2, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 2, 2022

Overview

Contact Import cleanup - includes fixes to contact matchine

I thought I'd pull all the various cleanups into one PR & see if they play nice together (also good for r-run testing)

However, the ones that are non-cleanup are #23660 and #23665 - which, it turns out, don't conflict
A good portion of the others are very straight forward

Before

After

Technical Details

Comments

This addresses the e-notice identified here
civicrm#23643 (comment)

I believe the bug report in that thread was a variant of the e-notice. Ie the import()
function was failing to catch an exception & it was bubbling up to run()

While there is no support currently for calling import()
outside of run() - the intent is to replace run() with something
more sane - which WILL be callable from the outside (likely
via api).

The right behaviour for import() is to catch all errors
Note this code is no longer called by contact import, and the others do not pass
in relationship key - so we can remove rather than fix
This is now only checking booleans in a way that duplicates getTransformedValue
No point having a separate  line function
@civibot
Copy link

civibot bot commented Jun 2, 2022

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

Thanks @mlufty as discussed elsewhere - this is a big code tidy up but @MegaphoneJon has said he can put some QA resources to the rc & @darrick is also actively involved in testing & reviewing

There are around 400 lines of code left that I think do nothing....

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.

2 participants