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
User stages #23022
User stages #23022
Conversation
Ah I thought the |
Is there a specific reason favoring adding a second playbook, versus adding an extra step to the existing playbook? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the referenced tables/user_stages.sql
seems to be missing
D'oh. Added Re: adding second playbook, there's no functional difference, just an organizational change. All the stuff in the first playbook relates explicitly to reporting we do to regional partners, and the new one for user stages is more broadly useful for analytical purposes. My thought was that we might add additional playbooks in the future as we do more of this sort of stuff (I'd more descriptively call these "analytical aggregates"), and was trying to prevent a single playbook from getting unwieldy. |
@wjordan this look ok to you now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looks great, sorry for losing track of this.
This creates a analytics/Redshift-only table,
user_stages
, which aggregates student progress to the "stage" level (also known as a "lesson" externally in some of our courses). Our production data model includes student progress at the "level" granularity (user_levels
) and the "script" granularity (user_scripts
), but doesn't actively track anything in between.This PR:
redshift_rollups
cron task to run every playbook in theaws/redshift/playbooks
directory, and adds a new playbook to create/refreshuser_stages
.