Skip to content

Commit

Permalink
docs: add responses dataset documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed May 15, 2024
1 parent 37c6e5f commit 71b004f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/problems/responses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{{
config(
materialized="materialized_view",
schema=env_var("ASPECTS_XAPI_DATABASE", "xapi"),
engine=get_engine("ReplacingMergeTree()"),
primary_key="(org, course_key, problem_id)",
order_by="(org, course_key, problem_id, actor_id)",
Expand Down
28 changes: 28 additions & 0 deletions models/problems/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ models:
- name: attempts
data_type: int16
description: "Number indicating which attempt this was"
- name: problem_id
data_type: string
description: "The problem's unique identifier"

- name: int_problems_per_subsection
description: "A dimension table with the number of problems per subsection"
Expand Down Expand Up @@ -435,3 +438,28 @@ models:
- name: course_order
data_type: Int32
description: "The sort order of this block in the course across all course blocks"

- name: responses
description: "A record per course per problem per learner with their last attempt and first success"
columns:
- name: org
data_type: string
description: "The organization that the course belongs to"
- name: course_key
data_type: string
description: "The course key for the course"
- name: problem_id
data_type: string
description: "The problem's unique identifier"
- name: actor_id
data_type: string
description: "The xAPI actor identifier"
- name: first_success_at
data_type: datetime
description: "The timestamp of the first successful attempt"
- name: last_attempt_at
data_type: datetime
description: "The timestamp of the last attempt"
- name: emission_time
data_type: datetime
description: "The timestamp of the last attempt or the first successful attempt"

0 comments on commit 71b004f

Please sign in to comment.