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

Code cleanup on export #12212

Merged
merged 1 commit into from
May 30, 2018
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This is preliminary code clean up. There is a complex (bug-fix) patch to this function that I don't feel comfortable reviewing with code cleanup first

Before

Code loops for different concerns intertwined

After

Code loops separated - ready for next commit to extract as a function the determination of relationship properties for a relationship ie

$returnPropertions[$relationshipType] = self:getReturnPropertiesForRelationshipType() should come out of next round. But extraction commits are best reviewed in isolation

Technical Details

@monishdeb still chipping away at this.... Can you review this chunk.

Comments


$locTypeId = CRM_Utils_Array::value(2, $value);

if ($relationField) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this chunk has been moved into the earlier loop as will be part of the same extraction

@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@monishdeb
Copy link
Member

Tested this cleanup patch and it works when I tested on local, didn't cause any unintended regression. Added UT passed.

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