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

[REF] final cleanup - call bulkCreate from migrate_utils #14728

Merged
merged 1 commit into from
Jul 12, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This is a final cleanup to call rather than replicate bulkCreate from migrate utils

Before

Lots of single use code

After

DRY

Technical Details

Good testing on this function - rest of commits will be rebased out of this before it is up for final review - but I had to tweak the test to run in isolation

Comments

@civibot
Copy link

civibot bot commented Jul 4, 2019

(Standard links)

@civibot civibot bot added the master label Jul 4, 2019
@pradpnayak
Copy link
Contributor

This needs rebuild

@eileenmcnaughton eileenmcnaughton force-pushed the last_icing branch 2 times, most recently from 509c40a to c851189 Compare July 5, 2019 04:12
@@ -137,7 +137,7 @@ public function basicXmlTestCases() {
// CustomGroup params
array(
'extends' => 'Activity',
'extends_entity_column_value' => array(array_search('Meeting', CRM_Core_PseudoConstant::activityType())),
'extends_entity_column_value' => [1],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes - because it's in the dataprovider (I guess) this test won't run in isolation if it is accessing the DB

This has a test CRM_Utils_Migrate_ImportExportTest although I had trouble running it without switching to
some hard-coding (at least in isolation). This switches the existing bulk create action over to use bulkCreate
@colemanw
Copy link
Member

Merging based on code review & passing tests.

@colemanw colemanw merged commit 5b2658d into civicrm:master Jul 12, 2019
@colemanw colemanw deleted the last_icing branch July 12, 2019 01:31
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.

3 participants