forked from open-craft/openedx-completion-aggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
428cded
commit 79cc42e
Showing
10 changed files
with
297 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/fixtures/expected/openedx.completion_aggregator.completion.sequential.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"actor": { | ||
"objectType": "Agent", | ||
"account": { | ||
"name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", | ||
"homePage": "http://localhost:18000" | ||
} | ||
}, | ||
"id":"484fe8d7-7a5b-52ff-a0ab-3d3d8c1a8b27", | ||
"object":{ | ||
"id":"http://localhost:18000/xblock/block-v1:edX+DemoX+Demo_Course+type@sequential+block@bf1eac10ebb649e3aaf9cc07325f8e04", | ||
"definition":{ | ||
"type":"http://adlnet.gov/expapi/activities/module" | ||
}, | ||
"objectType":"Activity" | ||
}, | ||
"verb":{ | ||
"id":"http://adlnet.gov/expapi/verbs/completed", | ||
"display":{ | ||
"en":"completed" | ||
} | ||
}, | ||
"version":"1.0.3", | ||
"context":{ | ||
"contextActivities":{ | ||
"parent":[ | ||
{ | ||
"id":"http://localhost:18000/course/course-v1:edX+DemoX+Demo_Course", | ||
"objectType":"Activity", | ||
"definition":{ | ||
"name":{ | ||
"en-US":"Demonstration Course" | ||
}, | ||
"type":"http://adlnet.gov/expapi/activities/course" | ||
} | ||
} | ||
] | ||
}, | ||
"extensions":{ | ||
"https://w3id.org/xapi/openedx/extension/transformer-version":"[email protected]", | ||
"https://w3id.org/xapi/openedx/extensions/session-id":"056aca2a1c6b76742b283e73d3424453" | ||
} | ||
}, | ||
"timestamp":"2023-12-05T21:34:52.909063+00:00" | ||
} |
45 changes: 45 additions & 0 deletions
45
tests/fixtures/expected/openedx.completion_aggregator.completion.vertical.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"actor": { | ||
"objectType": "Agent", | ||
"account": { | ||
"name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", | ||
"homePage": "http://localhost:18000" | ||
} | ||
}, | ||
"id":"484fe8d7-7a5b-52ff-a0ab-3d3d8c1a8b27", | ||
"object":{ | ||
"id":"http://localhost:18000/xblock/block-v1:edX+DemoX+Demo_Course+type@vertical+block@e1fabd9fa55f441caa75580f258ffbc3", | ||
"definition":{ | ||
"type":"http://adlnet.gov/expapi/activities/lesson" | ||
}, | ||
"objectType":"Activity" | ||
}, | ||
"verb":{ | ||
"id":"http://adlnet.gov/expapi/verbs/completed", | ||
"display":{ | ||
"en":"completed" | ||
} | ||
}, | ||
"version":"1.0.3", | ||
"context":{ | ||
"contextActivities":{ | ||
"parent":[ | ||
{ | ||
"id":"http://localhost:18000/course/course-v1:edX+DemoX+Demo_Course", | ||
"objectType":"Activity", | ||
"definition":{ | ||
"name":{ | ||
"en-US":"Demonstration Course" | ||
}, | ||
"type":"http://adlnet.gov/expapi/activities/course" | ||
} | ||
} | ||
] | ||
}, | ||
"extensions":{ | ||
"https://w3id.org/xapi/openedx/extension/transformer-version":"[email protected]", | ||
"https://w3id.org/xapi/openedx/extensions/session-id":"056aca2a1c6b76742b283e73d3424453" | ||
} | ||
}, | ||
"timestamp":"2023-12-05T21:34:52.909063+00:00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
"id":"146d5372-1d64-54b1-8c60-b4acaad3c976", | ||
"object":{ | ||
"id":"http://localhost:18000/xblock/block-v1:edX+DemoX+Demo_Course+type@course+block@course", | ||
"id":"http://localhost:18000/courses/course-v1:edX+DemoX+Demo_Course", | ||
"definition":{ | ||
"type":"http://adlnet.gov/expapi/activities/course" | ||
}, | ||
|
@@ -22,29 +22,15 @@ | |
}, | ||
"version":"1.0.3", | ||
"context":{ | ||
"contextActivities":{ | ||
"parent":[ | ||
{ | ||
"id":"http://localhost:18000/course/course-v1:edX+DemoX+Demo_Course", | ||
"objectType":"Activity", | ||
"definition":{ | ||
"name":{ | ||
"en-US":"Demonstration Course" | ||
}, | ||
"type":"http://adlnet.gov/expapi/activities/course" | ||
} | ||
} | ||
] | ||
}, | ||
"extensions":{ | ||
"https://w3id.org/xapi/openedx/extension/transformer-version":"[email protected]", | ||
"https://w3id.org/xapi/openedx/extensions/session-id":"056aca2a1c6b76742b283e73d3424453" | ||
} | ||
}, | ||
"result":{ | ||
"completion":false, | ||
"extensions": { | ||
"https://w3id.org/xapi/cmi5/result/extensions/progress":80 | ||
"score": { | ||
"scaled": 0.8 | ||
} | ||
}, | ||
"timestamp":"2023-12-05T21:34:52.909063+00:00" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/fixtures/raw/openedx.completion_aggregator.completion.sequential.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "openedx.completion_aggregator.completion.sequential", | ||
"timestamp": "2023-12-05T21:34:52.909063+00:00", | ||
"data": { | ||
"user_id": 4, | ||
"course_id": "course-v1:edX+DemoX+Demo_Course", | ||
"context_key": "course-v1:edX+DemoX+Demo_Course", | ||
"block_id": "block-v1:edX+DemoX+Demo_Course+type@sequential+block@bf1eac10ebb649e3aaf9cc07325f8e04", | ||
"block_type": "course", | ||
"percent": 1, | ||
"earned": 10, | ||
"possible": 10 | ||
}, | ||
"context": { | ||
"course_id": "course-v1:edX+DemoX+Demo_Course", | ||
"course_user_tags": {}, | ||
"session": "056aca2a1c6b76742b283e73d3424453", | ||
"user_id": 3, | ||
"username": "openedx", | ||
"ip": "172.18.0.1", | ||
"host": "localhost:18000", | ||
"agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36", | ||
"path": "/courses/course-v1:edX+DemoX+Demo_Course/xblock/block-v1:edX+DemoX+Demo_Course+type@problem+block@7c54b16c8ed34f9f8772015178c7a175/handler/xmodule_handler/problem_check", | ||
"referer": "http://localhost:18000/courses/course-v1:edX+DemoX+Demo_Course+type@vertical+block@dd8110c941b94d929b56841195213797?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view", | ||
"accept_language": "en-US,en;q=0.9,es;q=0.8", | ||
"client_id": null, | ||
"org_id": "edX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
Oops, something went wrong.