FMCorz / moodle-block_xp

A gamification plugin for Moodle allowing students to gain experience points and level up.
https://levelup.plus/?ref=github
149 stars 42 forks source link

Questions created for mod_studentquiz not counted #125

Open t-schroeder opened 2 years ago

t-schroeder commented 2 years ago

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

FMCorz commented 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!