Skip to content

Commit

Permalink
feat: unify problem link and display name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 9, 2024
1 parent ce6ff25 commit e2bc4ed
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
4 changes: 1 addition & 3 deletions models/problems/fact_problem_responses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ select
blocks.course_run as course_run,
responses.problem_id as problem_id,
blocks.block_name as problem_name,
blocks.display_name_with_location as problem_name_with_location,
{{ a_tag("responses.object_id", "blocks.block_name") }} as problem_link,
{{ a_tag("responses.object_id", "blocks.display_name_with_location") }} as problem_name_with_location,
blocks.graded as graded,
course_order as course_order,
responses.actor_id as actor_id,
Expand Down Expand Up @@ -55,7 +54,6 @@ group by
problem_id,
problem_name,
problem_name_with_location,
problem_link,
actor_id,
responses,
success,
Expand Down
3 changes: 1 addition & 2 deletions models/problems/int_problem_results.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ select
blocks.course_run as course_run,
full_responses.problem_id as problem_id,
blocks.block_name as problem_name,
blocks.display_name_with_location as problem_name_with_location,
{{ a_tag("full_responses.object_id", "blocks.display_name_with_location") }} as problem_name_with_location,
blocks.course_order as course_order,
{{ a_tag("full_responses.object_id", "blocks.block_name") }} as problem_link,
full_responses.actor_id as actor_id,
full_responses.responses as responses,
full_responses.success as success,
Expand Down
6 changes: 0 additions & 6 deletions models/problems/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ models:
- name: problem_name_with_location
data_type: String
description: "The problem's display name with section, subsection, and unit prepended to the name. This provides additional context when looking at problem names and can help data consumers understand which problem they are analyzing"
- name: problem_link
data_type: String
description: "An anchor tag with a link to the problem"
- name: graded
data_type: Bool
description: "Whether the block is graded"
Expand Down Expand Up @@ -129,9 +126,6 @@ models:
- name: problem_name_with_location
data_type: String
description: "The problem's display name with section, subsection, and unit prepended to the name. This provides additional context when looking at problem names and can help data consumers understand which problem they are analyzing"
- name: problem_link
data_type: String
description: "An anchor tag with a link to the problem"
- name: actor_id
data_type: String
description: "The xAPI actor identifier"
Expand Down
4 changes: 1 addition & 3 deletions models/problems/section_problem_engagement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ with
blocks.course_name as course_name,
responses.problem_id as problem_id,
blocks.block_name as problem_name,
blocks.display_name_with_location as problem_name_with_location,
{{ a_tag("responses.object_id", "blocks.block_name") }} as problem_link,
{{ a_tag("responses.object_id", "blocks.display_name_with_location") }} as problem_name_with_location,
blocks.graded as graded,
course_order as course_order,
responses.actor_id as actor_id,
Expand All @@ -60,7 +59,6 @@ with
problem_id,
problem_name,
problem_name_with_location,
problem_link,
actor_id,
responses,
success,
Expand Down
4 changes: 1 addition & 3 deletions models/problems/subsection_problem_engagement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ with
blocks.course_name as course_name,
responses.problem_id as problem_id,
blocks.block_name as problem_name,
blocks.display_name_with_location as problem_name_with_location,
{{ a_tag("responses.object_id", "blocks.block_name") }} as problem_link,
{{ a_tag("responses.object_id", "blocks.display_name_with_location") }} as problem_name_with_location,
blocks.graded as graded,
course_order as course_order,
responses.actor_id as actor_id,
Expand All @@ -60,7 +59,6 @@ with
problem_id,
problem_name,
problem_name_with_location,
problem_link,
actor_id,
responses,
success,
Expand Down

0 comments on commit e2bc4ed

Please sign in to comment.