Description
Enabling the "Identify users by id" setting does not send the username in the xAPI statement.
Version
Release 4.6.0, which appears to be current master.
Steps to reproduce the bug
Go to Site Administration -> Plugins -> Logging -> Logstore xAPI
Tick the box named “Identify users by id”.
View a course activity.
The statements sent to the LRS have an actor of:
"actor": {
"name": "Admin User",
"account": {
"homePage": "https://lms.com",
"name": "2"
}
}
Expected behaviour
The statements sent to the LRS have an actor of:
"actor": {
"name": "Admin User",
"account": {
"homePage": "https://lms.com",
"name": "admin"
}
}
Description Enabling the "Identify users by id" setting does not send the username in the xAPI statement.
Version Release 4.6.0, which appears to be current master.
Steps to reproduce the bug
Expected behaviour The statements sent to the LRS have an actor of: "actor": { "name": "Admin User", "account": { "homePage": "https://lms.com", "name": "admin" } }
Actual behaviour "actor": { "name": "Admin User", "account": { "homePage": "https://lms.com", "name": "2" } }
Server information
Client information
Additional information Changing the test on https://github.com/xAPI-vle/moodle-logstore_xapi/blob/master/src/transformer/utils/get_user.php#L32 from
to
appears to resolve the issue.