Talking to Sati today, this came up as a real use case that people use extensively. So we want to allow users to be able to select whether they want subcategories for a given category.
Tasks for this ticket:
- Include a checkbox for Include subcategories along with every category.
- Update the backend logic to include pages from all subcategories when generating statistics
- Nothing about computing statistics changes from what's specified in T194707: Statistics generation when user specifies categories to track metrics
Here's a rough mock of what it would look like:
We should have some limits to prevent issues. Here's the proposed limits which we can tweak later as we test the feature:
- Category depth: 10 (Going off of example categories Sati pointed to - supported by WMDE, WLM, Just for the Record, AfroCROWD)
- Total number of pages we would go through before we stop looking at: 30k