@Marina and I are configuring a purge function that:
- Purges a set of reports differently for two different roles (chw/supervisor).
- Purges very aggressively for one role (some reports after just a few days).
- Has some complex logic for how/when to purge one report type.
I unit tested the function extensively, but now I want to test it on production data to make sure that it works, and evaluate how these purge rules will affect production experiences.
I started by Replicating some production data locally. I waited for a purgelog in medic-sentinel. But when I login, I’m still seeing reports for the specific user that I would expect to be purged.
I’m wondering if there are some recommended steps to go through when testing a purge function? If I change the function, how can I restart testing completely?
In general, changing the purging configuration feels a bit scary. It feels like it will be difficult to undo if there is a bug in the function - so it would be great to have clear steps to verify before releasing - particularly when I want to iterate on the rules and experiment with multiple different rules.