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

dev/core#2047 [REF] Minor code extraction #18499

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Code extraction in (heavily tested) moveLocations action

Before

Long chunk of code

After

Partially extracted to the MergeHandler class

Technical Details

This extracts code to the MergeHandler class for deduping locations. We have a LOT of
test cover here with all the scenarios in jobTest::testBatchMergesAddresses & other functions
using that same data provider.

The goal is to refactor the code onto the MergeHandler class, with a view to
doing less variable passing & more property-using to help clean it up -
in this case it's already visible that 2 variables can be derived in the mergeHandler:

Comments

@civibot
Copy link

civibot bot commented Sep 17, 2020

(Standard links)

@civibot civibot bot added the master label Sep 17, 2020
@eileenmcnaughton eileenmcnaughton force-pushed the merger branch 2 times, most recently from 743039e to 53d07eb Compare September 17, 2020 03:11
This extracts code to the MergeHandler class for deduping locations. We have a LOT of
test cover here with all the scenarios in jobTest::testBatchMergesAddresses & other functions
using that same data provider.

The goal is to refactor the code onto the MergeHandler class, with a view to
doing less variable passing & more property-using to help clean it up -
in this case it's already visible that 2 variables can be derived in the mergeHandler:
@eileenmcnaughton eileenmcnaughton changed the title [REF] Minor code extraction dev/core#2047 [REF] Minor code extraction Sep 17, 2020
@eileenmcnaughton
Copy link
Contributor Author

@pfigel @JKingsnorth can either of you check this

@pradpnayak
Copy link
Contributor

Looks good to me...

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 @colemanw also some review by @pradpnayak on this one (thanks @pradpnayak )

@seamuslee001
Copy link
Contributor

Merging as per @pradpnayak review

@seamuslee001 seamuslee001 merged commit d820af8 into civicrm:master Sep 22, 2020
@seamuslee001 seamuslee001 deleted the merger branch September 22, 2020 00:46
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