Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhanced data reporting in DataStats.php This commit includes an update to DataStats.php where two new methods getComponentStorageUsage() and getFileAreaStorageUsage() were added. These methods provide detailed insight into storage usage by different course components and file areas to give a better handle on data usage within Moodle. Also, modified the data array to include results from these new methods, hence improving the reporting functionality. * Refactor DataStats.php for accurate storage usage reporting The existing SQL queries to calculate storage usage were simplified and made more accurate, avoiding potential data duplication. It now retrieves a list of components or file areas, then calculates storage usage based on unique content hashes. This provides a more accurate insight into actual storage usage within Moodle. As a result, the methods getComponentStorageUsage() and getFileAreaStorageUsage() display a precise computation of storage usage by each component and file area. * Update DataStats array key Removed message added for debugging. --------- Co-authored-by: Oliwer Banach <[email protected]>
- Loading branch information