Open t-schroeder opened 2 years ago
Hi @t-schroeder,
Thank you for reporting this. As your analysis showed, only events of participating level are counted. We made the decision a long time ago to filter those as to make it easier to get started with Level up! and because in 99% of cases other or teaching events are not relevant to students.
We suggest to first re-evaluate whether the educational level of the event in mod_studentquiz
is truly teaching, in most cases students actions should be considered participative when they are acting as students.
Thank you!
We use https://github.com/studentquiz/moodle-mod_studentquiz/ and when students create questions through that plugin those events are not counted because the edulevel is 1 (teaching) and not 2 (participating). That restriction is not configurable, it seems:
https://github.com/FMCorz/moodle-block_xp/blob/e2b230c36bcf1c6ed712b4621993b343615524ab/classes/local/strategy/global_collection_strategy.php#L83-L85
One way to solve this would be to allow events with other edulevels. Another way would be for mod_studentquiz to somehow create those events with edulevel == participating.
Corresponding issue in mod_studentquiz: https://github.com/studentquiz/moodle-mod_studentquiz/issues/326