Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create fact_watched_video_segments report #86

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

Ian2012
Copy link
Contributor

@Ian2012 Ian2012 commented May 6, 2024

Description

This PR imports the model fact_watched_video_segments from Aspects to DBT

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label May 6, 2024
@openedx-webhooks
Copy link

Thanks for the pull request, @Ian2012! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

Copy link
Contributor

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it just needs docs for started_at otherwise looks good!

Comment on lines 90 to 92
CONCAT(
toString(start_position), '-', toString(start_position + 4)
) as segment_range,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use segment_start instead of start_position. start_position signifies when in a video a learner started watching, not the start of the 5-second segment that they watched.
For example, if I watched a video from 0 seconds to 20 seconds, this would produce four rows where segment_range is 0-4.

Comment on lines 98 to 100
join
{{ ref("dim_user_pii") }} dpi
on enriched_segments.actor_id = toString(dpi.external_user_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran this locally, I noticed that my demo course data is excluded from this dataset. Are there cases where this join might be excluding learners?

Copy link
Contributor Author

@Ian2012 Ian2012 May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this join is wrong. Thanks you for catching that

Copy link
Contributor

@SoryRawyer SoryRawyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for adding this!

@bmtcril bmtcril merged commit eb3999a into main May 7, 2024
4 checks passed
@bmtcril bmtcril deleted the cag/watches branch May 7, 2024 15:31
@openedx-webhooks
Copy link

@Ian2012 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants