MDL-78608 question stats: avoid loading data for missing contexts
commit3534b31745c114c8604f11c6b5a8f0ec3152854b
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 28 Jun 2023 16:16:43 +0000 (28 17:16 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 28 Jun 2023 16:16:48 +0000 (28 17:16 +0100)
treea346133e9bc89499d2675f8086dd608c38c3bb69
parent3cd84747cb0c86ab5d5f7394fc6f01bcb24c4389
MDL-78608 question stats: avoid loading data for missing contexts

It turns out that there are plugins which don't (currently)
clean up their question attempts when a context is deleted.
Therefore, we need to make Moodle core robust to that.
question/classes/local/statistics/statistics_bulk_loader.php
question/tests/local/statistics/statistics_bulk_loader_test.php