Skip to content

Commit

Permalink
adding quality flag to HOC starts (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryamanda authored Dec 3, 2024
2 parents 55246db + c9e6290 commit 6ffdf48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbt/models/marts/hoc/_hoc__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ models:
description: the calendar year associated with the HoC activity
- name: school_year
description: the school year associated with the HoC activity
- name: referer
- name: company
- name: tutorial
- name: is_third_party
description: 1 if the tutorial matches to our manually maintained list of Code.org HOC tutorials. Last updated 11/25/24 for the 2024 HOC year.
- name: is_flagged_for_quality
description: 1 if we have concerns about the quality of the external data being sent to us by the third-party pixel
- name: city
description: the city associated with the user's location
- name: country
Expand Down
5 changes: 5 additions & 0 deletions dbt/models/marts/hoc/dim_hoc_starts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ final as (
when it.is_internal is null then 1
else 0
end as is_third_party
, case
when tutorial in ('tynkerapp','carnegie_accelerate')
then 1
else 0
end as is_flagged_for_quality
, hoc_activity.city
, hoc_activity.country
, hoc_activity.state
Expand Down

0 comments on commit 6ffdf48

Please sign in to comment.