-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
[REF] Fix import signature on activity parser, add preliminary test #19301
Conversation
The construct class does not need to receive mapperKeys as a reference - this was removed for Membership Parser here civicrm@14b9e06#diff-36f5db3555445d26df2de015a18598fd5d5682b76c62aee4f14dde95b7948274L65 In addition 2 places that instantiate this class pass in unused params (go copy & paste) so that is removed. The test tests very little so far....
(Standard links)
|
8371e96
to
15e60ea
Compare
test this please |
@demeritcowboy I don't know if you have hit it but it's not currently possible to update an activity by import. I think the fix might not actually be that hard (I have more commits locally that follow on from this one & #19302 ) - not sure if this is functionality you have an interest in |
There was an older PR where that came up - the framework is there the radio just isn't placed on the form and then the final pieces at the end. Let me see if I can find. |
Link: #17932 (comment) |
@demeritcowboy hmm - I think there is more stuff in the validation code too. TBH I'm not sure why we need the checkbox - if the id field is there & mapped an update makes sense I think (I don't think the underlying code for replace vs fill is there but it is when I get the other parts cleaned up I'll revive it) |
Ok I don't fully remember, but I can review this one later today. |
|
thanks @demeritcowboy - @seamuslee001 @colemanw can someone merged based on above review |
Overview
Minor preliminary cleanup
Before
2/3 of the places that instantiate it pass in unused parameters
After
Technical Details
The construct class does not need to receive mapperKeys as a reference - this
was removed for Membership Parser here 14b9e06#diff-36f5db3555445d26df2de015a18598fd5d5682b76c62aee4f14dde95b7948274L65
In addition 2 places that instantiate this class pass in unused params (go copy & paste) so
that is removed. The test tests very little so far....
Comments