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 portion of GroupContact load that builds the temporary table #19945

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 30, 2021

Overview

[REF] Extract portion of GroupContact load that builds the temporary table

Before

Yawn really long

After

Pithy (er)

Technical Details

This is mostly a straight extraction. I chose to pass groupIDs in as an array
as I think that creates greater flexibility and I chose to pass CRM_Utils_SQL_TempTable
in rather than load it in the function because I have some ideas I'm working through
about how that might also provide more flexibilty

Those things can be changed later if we want as it IS a protected function

Roughly a gazillion tests run through this function

Comments

@seamuslee001 @colemanw I realised the api part of how to do a group filter is pretty tricky but I figured I could help by cleaning up the code it might call - I have some interesting ideas brewing but I'm gonna try to write them elsewhere so they don't snarl up what is a fairly straight forward extraction

@civibot
Copy link

civibot bot commented Mar 30, 2021

(Standard links)

@civibot civibot bot added the master label Mar 30, 2021
…table

This is mostly a straight extraction. I chose to pass groupIDs in as an array
as I think that creates greater flexibility and I chose to pass CRM_Utils_SQL_TempTable
in rather than load it in the function because I have some ideas I'm working through
about how that might also provide more flexibilty

Those things can be changed later if we want as it IS a protected function
@colemanw colemanw merged commit a89b74c into civicrm:master Mar 30, 2021
@colemanw colemanw deleted the group_filter branch March 30, 2021 19:03
@colemanw
Copy link
Member

Extraction makes sense & test coverage is very good.

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.

2 participants