Community Health Toolkit

More Granular replication depths in terms of contacts and places

I have encountered a challenge with docs replicated while building supervisor views with target aggregates for a big project. Consider the hierarchy below:

Branch → CHP Area → HHs (supervisor at branch)

When aggregating targets for CHPs, in order for them to show up in the target aggregates tab, i’d need to have visibility of the CHP contacts at CHP area level. Meaning the replication depth should be at least 2.
The problem with this is that it replicates the HHs for the supervisor which is not necessary for my case. So the supervisor ends up with a lot of docs.
If we had a replication level where i could replicate just the CHP contacts without the HHs this would greatly reduce the doc count for the supervisors’ app