-
-
Notifications
You must be signed in to change notification settings - Fork 825
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] minor code refactor on import - Pass ProcessorObject into loadSavedMapping & use it to load the formName #15068
Conversation
(Standard links)
|
@@ -396,12 +400,16 @@ public function buildQuickForm() { | |||
$formName = 'document.forms.' . $this->_name; | |||
//used to warn for mismatch column count or mismatch mapping | |||
CRM_Core_Session::singleton()->setStatus(NULL); | |||
$processor = new CRM_Import_ImportProcessor(); | |||
$processor->setMappingID($savedMappingID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually using mappingId & metadata yet but it seemed like the 'right sized bite' to include these sets in this pr
f19a2d1
to
0405fa6
Compare
@seamuslee001 this is passing now - can you merge it - I'm keen to get the full processor class in (this brings in more but not all) so I can start switching to it with tests. |
0405fa6
to
53359dc
Compare
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
After a few more steps we can eliminate most of this function & use the processor but this is jusut a very small change....
53359dc
to
a2ca56e
Compare
Merging based on code review & passing tests. |
thanks @colemanw |
This adds the full ImportProcessor class from the WIP pr civicrm#15034 - minus the functions that replace loadSavedMapping) along with tests. It does NOT start to use the new class as yet. Note that civicrm#15068 will need rebasing if this is merged first & vice versa The goal is to bring it into use along with extending tests but this is 'safe' in that no funcitonal code is changed
Overview
Small change towards a larger cleanup
Before
Long list of params
After
Still a long list of params but $formName replaced by processor which can later replace all the rest.
Technical Details
After a few more steps we can eliminate most of this function & use the processor - baby step towards #15034
Comments
@seamuslee001