This is to outline what involves in the boundary aggregation -
Templates for each levels.
Database refactor -
We will have to considerably change the way boundary information is stored in the database right now. Flatten it out from the current parent-child relationship to an OLAP structure (like what we did with DISE).
Run the aggregations -
The aggregation logic is not trivial. We cannot possibly aggregate all the variables at all the levels. This needs some homework and need to make sure that this is part of the workflow in a clean way so that if we add/remove a boundary, it's easy to generate the required data.
Change the way years are stored -
The aggregations need to happen based on the academic year and the way it's stored is not useful. We need to refactor this, apply it across other tables, create relationship.
Create API endpoints -
A fairly complex set of API endpoints need to be built to bring the data to the front-end. For comparison, volunteer and information.
This is to outline what involves in the boundary aggregation -