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

Added option to select group to only show descendant groups in GroupListPersonalizedLava #1775

Conversation

trydyingtolive
Copy link
Contributor

@trydyingtolive trydyingtolive commented Sep 21, 2016

Context

We need to display the information for only certain ministries' small groups. By selecting a group ancestor we can now show a leader their high school groups, and not their in-home small group.

Goal

It will allow this block to become more targeted.

Strategy

If the parent group is set, the block will recursively look up the IDs of all ancestors of that group. It then adds the where to the query. This may be slow if it is working through a huge number of groups, so I added caching of the IDs. The default cache length is 1 hour but it is configurable.

Possible Implications

This should not affect backward compatibility as any block that does not have a parent group set will continue as normal. Selecting a group with a great number of ancestors may be slow.

@azturner azturner merged commit b580ecf into SparkDevNetwork:develop Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants