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] extract buildGroupTree function #14303

Merged
merged 1 commit into from
May 23, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Function extraction

Before

Less readable

After

More readable

Technical Details

I did this mainly to surface the fact that the variables involved are factored into the cachekey for
#14292

Comments

@civibot
Copy link

civibot bot commented May 23, 2019

(Standard links)

@civibot civibot bot added the master label May 23, 2019
@colemanw
Copy link
Member

I feel like this extraction could be cleaned up a little so it doesn't have to take so many variables, but I don't want to bog this down with nitpicking. For now how about just making the new function private so future generations can refactor it with confidence.

I did this mainly to surface the fact that the variables involved are factored into the cachekey
@eileenmcnaughton
Copy link
Contributor Author

@colemanw good call - done

@eileenmcnaughton
Copy link
Contributor Author

test this please

@mattwire mattwire merged commit 4da63d8 into civicrm:master May 23, 2019
@eileenmcnaughton eileenmcnaughton deleted the extract_cache branch May 23, 2019 10:39
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