Workload Assessment Block for Moodle



-blue)
A Moodle block that lets students log the hours they spend on each course every week, gives
quality managers cohort-wide statistics on student workload across the semester, and gives
teachers anonymized workload statistics for their own courses (Enrollment mode).
Maintenance release. No new features — code-quality, privacy and performance fixes only. Upgrading is recommended for all sites.
- Coding style: global functions are now correctly Frankenstyle-prefixed (block_workload_...), removing the risk of naming collisions
with other plugins.
- Privacy: the block_workload_user_settings table is now declared and handled in the privacy provider, so user preference data is
correctly included in Moodle's data export/deletion requests (GDPR compliance).
- Performance: eliminated N+1 database queries in the cohort list, cohort/course reordering, and block rendering, plus simplified
bulk-add lookups and de-duplicated activation-window logic — noticeably faster management pages on sites with many cohorts, courses
or members.
- Output: remaining inline HTML/JS in the management pages moved to Mustache templates and AMD modules, in line with Moodle's
output/rendering conventions.
- AJAX ' External Services: the legacy ajax_usersearch.php endpoint has been replaced with a proper External Service
(block_workload_search_stats_users), called via core/ajax. Capability checks, parameter validation and the anonymized-statistics
guard all now run through the External API, improving security and standards compliance.
No database upgrade steps are required beyond the automatic plugin upgrade.