Skip to content

Commit

Permalink
docs: update docs for edc97a2
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Dec 18, 2023
1 parent 0a534d0 commit b01f42a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion catalog.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.0", "generated_at": "2023-12-18T18:59:41.907588Z", "invocation_id": "0cc984de-58ed-4e0c-aa31-1f948f8cd715", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.0", "generated_at": "2023-12-18T19:33:33.846689Z", "invocation_id": "1130844b-fb36-4ac3-a993-9534be2f35b4", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
25 changes: 18 additions & 7 deletions compiled/aspects/models/base/xapi_events_all_parsed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,26 @@ SELECT
JSON_VALUE(event_str, '$.actor.mbox_sha1sum')
) as actor_id,
JSON_VALUE(event_str, '$.object.id') as object_id,
-- If the contextActivities parent is a course, use that. Otherwise use the object id for the course id
if(
-- If the contextActivities parent is a course, use that. It can be a "course"
-- type, or a "cmi.interaction" type for multiple question problem submissions.
-- Otherwise use the object id for the course id.
multiIf(
-- If the contextActivities parent is a course, use that
JSON_VALUE(
event_str,
'$.context.contextActivities.parent[0].definition.type')
= 'http://adlnet.gov/expapi/activities/course',
JSON_VALUE(event_str, '$.context.contextActivities.parent[0].id'),
JSON_VALUE(event_str, '$.object.id')
) as course_id,
'$.context.contextActivities.parent[0].definition.type'
) = 'http://adlnet.gov/expapi/activities/course',
JSON_VALUE(event_str, '$.context.contextActivities.parent[0].id'),
-- Else if the contextActivities parent is a GroupActivity, it's a multi
-- question problem and we use the grouping id
JSON_VALUE(
event_str,
'$.context.contextActivities.parent[0].objectType'
) in ('Activity', 'GroupActivity'),
JSON_VALUE(event_str, '$.context.contextActivities.grouping[0].id'),
-- Otherwise use the object id
JSON_VALUE(event_str, '$.object.id')
) as course_id,
coalesce(get_org_from_course_url(course_id), '') as org,
emission_time as emission_time,
event_str as event_str
Expand Down
Binary file modified graph.gpickle
Binary file not shown.
2 changes: 1 addition & 1 deletion graph_summary.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_invocation_id": "0cc984de-58ed-4e0c-aa31-1f948f8cd715", "linked": {"0": {"name": "source.aspects.xapi.xapi_events_all", "type": "source", "succ": [4]}, "1": {"name": "source.aspects.event_sink.course_block_names", "type": "source", "succ": [3, 7, 20]}, "2": {"name": "source.aspects.event_sink.course_names", "type": "source", "succ": [3, 6, 7, 18, 20]}, "3": {"name": "model.aspects.dim_course_blocks", "type": "model", "succ": [9, 12, 13, 15]}, "4": {"name": "model.aspects.xapi_events_all_parsed", "type": "model", "succ": [5, 8, 11, 10, 14, 19, 21]}, "5": {"name": "model.aspects.forum_events", "type": "model", "succ": [6]}, "6": {"name": "model.aspects.fact_forum_interactions", "type": "model"}, "7": {"name": "model.aspects.fact_grades", "type": "model", "succ": [24]}, "8": {"name": "model.aspects.grading_events", "type": "model", "succ": [7]}, "9": {"name": "model.aspects.fact_video_plays", "type": "model"}, "10": {"name": "model.aspects.video_playback_events", "type": "model", "succ": [9]}, "11": {"name": "model.aspects.video_transcript_events", "type": "model", "succ": [12]}, "12": {"name": "model.aspects.fact_transcript_usage", "type": "model"}, "13": {"name": "model.aspects.fact_problem_responses", "type": "model", "succ": [17]}, "14": {"name": "model.aspects.problem_events", "type": "model", "succ": [13, 15]}, "15": {"name": "model.aspects.int_problem_hints", "type": "model", "succ": [16]}, "16": {"name": "model.aspects.fact_learner_problem_summary", "type": "model", "succ": [22, 25, 26]}, "17": {"name": "model.aspects.int_problem_results", "type": "model", "succ": [16, 23]}, "18": {"name": "model.aspects.fact_enrollments", "type": "model", "succ": [27]}, "19": {"name": "model.aspects.enrollment_events", "type": "model", "succ": [18]}, "20": {"name": "model.aspects.fact_completions", "type": "model"}, "21": {"name": "model.aspects.completion_events", "type": "model", "succ": [20]}, "22": {"name": "test.aspects.learner_problem_summary_uniqueness", "type": "test"}, "23": {"name": "test.aspects.problem_results_uniqueness", "type": "test"}, "24": {"name": "test.aspects.accepted_values_fact_grades_grade_type__course__subsection__problem.712bd50c2f", "type": "test"}, "25": {"name": "test.aspects.not_null_fact_learner_problem_summary_success.76b52cb2da", "type": "test"}, "26": {"name": "test.aspects.not_null_fact_learner_problem_summary_attempts.817beed32b", "type": "test"}, "27": {"name": "test.aspects.accepted_values_fact_enrollments_enrollment_status__registered__unregistered.f8d10203f4", "type": "test"}}}
{"_invocation_id": "1130844b-fb36-4ac3-a993-9534be2f35b4", "linked": {"0": {"name": "source.aspects.xapi.xapi_events_all", "type": "source", "succ": [4]}, "1": {"name": "source.aspects.event_sink.course_block_names", "type": "source", "succ": [3, 7, 20]}, "2": {"name": "source.aspects.event_sink.course_names", "type": "source", "succ": [3, 6, 7, 18, 20]}, "3": {"name": "model.aspects.dim_course_blocks", "type": "model", "succ": [9, 12, 13, 15]}, "4": {"name": "model.aspects.xapi_events_all_parsed", "type": "model", "succ": [5, 8, 11, 10, 14, 19, 21]}, "5": {"name": "model.aspects.forum_events", "type": "model", "succ": [6]}, "6": {"name": "model.aspects.fact_forum_interactions", "type": "model"}, "7": {"name": "model.aspects.fact_grades", "type": "model", "succ": [24]}, "8": {"name": "model.aspects.grading_events", "type": "model", "succ": [7]}, "9": {"name": "model.aspects.fact_video_plays", "type": "model"}, "10": {"name": "model.aspects.video_playback_events", "type": "model", "succ": [9]}, "11": {"name": "model.aspects.video_transcript_events", "type": "model", "succ": [12]}, "12": {"name": "model.aspects.fact_transcript_usage", "type": "model"}, "13": {"name": "model.aspects.fact_problem_responses", "type": "model", "succ": [17]}, "14": {"name": "model.aspects.problem_events", "type": "model", "succ": [13, 15]}, "15": {"name": "model.aspects.int_problem_hints", "type": "model", "succ": [16]}, "16": {"name": "model.aspects.fact_learner_problem_summary", "type": "model", "succ": [22, 25, 26]}, "17": {"name": "model.aspects.int_problem_results", "type": "model", "succ": [16, 23]}, "18": {"name": "model.aspects.fact_enrollments", "type": "model", "succ": [27]}, "19": {"name": "model.aspects.enrollment_events", "type": "model", "succ": [18]}, "20": {"name": "model.aspects.fact_completions", "type": "model"}, "21": {"name": "model.aspects.completion_events", "type": "model", "succ": [20]}, "22": {"name": "test.aspects.learner_problem_summary_uniqueness", "type": "test"}, "23": {"name": "test.aspects.problem_results_uniqueness", "type": "test"}, "24": {"name": "test.aspects.accepted_values_fact_grades_grade_type__course__subsection__problem.712bd50c2f", "type": "test"}, "25": {"name": "test.aspects.not_null_fact_learner_problem_summary_success.76b52cb2da", "type": "test"}, "26": {"name": "test.aspects.not_null_fact_learner_problem_summary_attempts.817beed32b", "type": "test"}, "27": {"name": "test.aspects.accepted_values_fact_enrollments_enrollment_status__registered__unregistered.f8d10203f4", "type": "test"}}}
2 changes: 1 addition & 1 deletion manifest.json

Large diffs are not rendered by default.

Binary file modified partial_parse.msgpack
Binary file not shown.
2 changes: 1 addition & 1 deletion run_results.json

Large diffs are not rendered by default.

0 comments on commit b01f42a

Please sign in to comment.