Closed garemoko closed 5 years ago
That's really odd, yeah I think the default for new events is off which is pretty annoying. I don't know if there is a way to get around that.
In terms of it not actually disabling the event, I believe the is_event_ignored
function is meant to handle that, but I guess it might be getting skipped in which case it would just inserting everything into the xapi logstore table on line 74.
I've just done some testing and the checkboxes for disabling statements are working as expected. Logs aren't entered into the xapi logstore table when backgroundmode is on and not sent at all when it's disables - as expected.
I'll install an older version of the plugin and "upgrade" it at some point to see if I can replicate the issue.
Thanks @BrendanHalley 👍
Just completed an "upgrade" test.
\core\event\course_module_completion_updated
& \mod_book\event\chapter_viewed
unticked as expected (new events)\core\event\course_module_completion_updated
& \mod_book\event\chapter_viewed
\core\event\course_module_completion_updated
& \mod_book\event\chapter_viewed
@garemoko @ryansmith94 I'd say this one can be closed, I'm unable to replicate.
Ok will close this and reopen if needed. Thank you for investigating @BrendanHalley, really appreciated 👍
Weird. Thanks for testing.
Description I've been merrily testing using the new \mod_book\event\chapter_viewed event and it's working fine. I've only just realized that on my local Moodle it's been configured not to track so in fact it should not have been working. (I guess off is the default for new events).
Version https://github.com/xAPI-vle/moodle-logstore_xapi/pull/367/commits/08e72bdecc52fe26a4208e08a8dc82d169f8b80b on development
Steps to reproduce the bug
Expected behaviour The event should not be added to the xapi log table.
Actual behaviour The event is added to the table and is sent to the LRS.