Learning Locker xAPI Logstore Moodle Plugin - admin is actor for all course completion events

127 views
Skip to first unread message

henrik.v...@gmail.com

unread,
May 5, 2017, 3:05:28 AM5/5/17
to Learning Locker
I'm new to both xAPI and LL but, I've tried to set up LL to receive course completion events from Moodle using the Learning Locker xAPI Logstore Moodle Plugins.

When using the Learning Locker xAPI Logstore Moodle Plugin, the wrong actor seem to be sent in the course completion statements.

The admin user is recorded as the actor in the statement instead of the log events "related user". While viewing the satement in LL, it look like the admin user is completing the course multiple times.

LL Report for completed courses:

Admin User completed Course 1 | 19 hours ago (Thu, May 4, 2017 10:51 AM)
Admin User completed Course 1 | 19 hours ago (Thu, May 4, 2017 10:42 AM)


Log event for user 6:

"http://lrs.learninglocker.net/define/extensions/moodle_logstore_standard_log": {
"eventname": "\\core\\event\\course_completed",
"component": "core",
"action": "completed",
"objecttable": "course_completions",
"objectid": "5",
"crud": "u",
"edulevel": 2,
"contextid": 22,
"contextlevel": 50,
"contextinstanceid": "2",
"userid": "2",
"courseid": "2",
"relateduserid": "6",
"other": "a:1:{s:13:\"relateduserid\";s:1:\"6\";}",
"timecreated": 1493894522,
"origin": "cli",
"object": "course"

Log event for user 7:

"http://lrs.learninglocker.net/define/extensions/moodle_logstore_standard_log": {
"eventname": "\\core\\event\\course_completed",
"component": "core",
"action": "completed",
"objecttable": "course_completions",
"objectid": "6",
"crud": "u",
"edulevel": 2,
"contextid": 22,
"contextlevel": 50,
"contextinstanceid": "2",
"userid": "2",
"courseid": "2",
"relateduserid": "7",
"other": "a:1:{s:13:\"relateduserid\";s:1:\"7\";}",
"timecreated": 1493895062,
"origin": "cli",
"object": "course"

Ryan Smith

unread,
May 5, 2017, 9:39:15 AM5/5/17
to Learning Locker
Hey Henrik, this is really a place for Learning Locker specific queries and this is more a Moodle Plugin query. You can raise this issue on the Moodle Plugin's Github repository.

Thanks and warm regards,
Ryan
Reply all
Reply to author
Forward
0 new messages