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

CRM-21675: scheduled reminders: limit to group doesn't support parent groups #11629

Merged
merged 1 commit into from
May 16, 2018

Conversation

monishdeb
Copy link
Member

@monishdeb monishdeb commented Feb 5, 2018

Overview

Currently, you can not include recipients of parent group and its child group but can choose only 1 regular or smart group to limit recipients of schedule reminder. This fix extends the support to include all the recipients of parent and its child group(s).

Before

Doesn't include all recipients of parent and its child group(s)

After

Include all recipients of parent and its child group(s)

Technical Details

The PR got unit test for this fix


@monishdeb monishdeb added the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Feb 5, 2018
@monishdeb
Copy link
Member Author

Marked as [WIP] as going to add additional criteria and fixed in the new unit test

@monishdeb monishdeb removed the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Feb 11, 2018
@monishdeb monishdeb changed the title CRM-21675: scheduled reminders: limit to group doesn't support smart groups CRM-21675: scheduled reminders: limit to group doesn't support parent groups Feb 11, 2018
@monishdeb
Copy link
Member Author

@lcdservices
Copy link
Contributor

@monishdeb this looks good. When restricting to a parent group in scheduled reminders, members of child groups are included (and delivered to).

@monishdeb
Copy link
Member Author

Jenkins test this please

@eileenmcnaughton
Copy link
Contributor

@totten are you able to take a look at this? It makes sense to me in the general logic & it has a test but it's code only really you @monishdeb & @jitendrapurohit have looked at.

OTOH it has a unit test & it has been r-run tested by @lcdservices too

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

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

Tested normal and smart groups with sched reminder and confirm that parent group includes all child group contacts correctly as expected.

@colemanw
Copy link
Member

@colemanw colemanw merged commit 1c02925 into civicrm:master May 16, 2018
@monishdeb monishdeb deleted the CRM-21675 branch May 16, 2018 20:00
@eileenmcnaughton
Copy link
Contributor

yay

@monishdeb
Copy link
Member Author

Thanks everyone :)

@mcollopy
Copy link

mcollopy commented Aug 2, 2018

Hi - I've experienced a problem with a 'limit to' Smart group which was a complex Include/Exclude group based on Membership expiry dates among other criteria.
Just wondering if whether there's a limit to the complexity of the Smart Group, being only simple contact criteria, and not complex multi table criteria.
I believe we've had this working based on Smart groups using relationships, but perhaps Memberships is not achievable.
See related issue here https://issues.civicrm.org/jira/browse/CRM-21675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants