lxHive
lxHive copied to clipboard
/statements endpoint includes "voiding statements"
When a statement is voided, the xAPI LRS spec states that "A reporting system SHOULD NOT show voided or voiding Statements by default." xAPI-Spec.md at 1.0.2.
While running simple manual tests, I found that this LRS behavior does not match this. Voided statements are excluded, but voiding statements are not.
This is the response I saw from the /statements
endpoint, after submitting two statements and then voiding one.
{
"statements": [
{
"actor": {
"objectType": "Agent",
"name": "Example Admin",
"mbox": "mailto:[email protected]"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/voided",
"display": {
"en-US": "voided"
}
},
"object": {
"objectType": "StatementRef",
"id": "41f03ec4-0ea6-4f92-b1ca-bdf48d0dcc1f"
},
"authority": {
"objectType": "Agent",
"account": {
"homePage": "http://XXXXXXX",
"name": "[email protected]"
}
},
"stored": "2022-05-20T13:46:45+00:00",
"timestamp": "2022-05-20T13:46:45+00:00",
"id": "e598fbcd-9c7e-4cff-bfa3-9b50ad93aa94"
},
{
"actor": {
"mbox": "mailto:[email protected]",
"name": "Test User",
"objectType": "Agent"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/launched",
"display": {
"en-US": "launched"
}
},
"object": {
"objectType": "Activity",
"id": "http://XXXX,XXXXX...",
"definition": {
"name": {
"en-US": "XXXXXXXXXXXXXXXX"
},
"description": {
"en-US": "XXXXXXXXXXXXXX"
},
"interactionType": "performance"
}
},
"authority": {
"objectType": "Agent",
"account": {
"homePage": "http://XXXXXXX",
"name": "[email protected]"
}
},
"stored": "2022-05-19T20:52:14+00:00",
"timestamp": "2022-05-19T20:52:14+00:00",
"id": "82a261c6-318f-4675-85b3-c6859ca06c6f"
}
],
"more": "",
"totalCount": 2
}