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

Determine student absence by looking at the enrollments and grade data #1928

Open
tomca32 opened this issue Jun 13, 2024 · 0 comments
Open
Assignees

Comments

@tomca32
Copy link
Member

tomca32 commented Jun 13, 2024

At the moment, our student_lesson view does not know if a student was supposed to be present in the lesson or no because it only knows the current group_id of a student.

To fix this we need to consult the enrollments table. Enrollments tell us when the student has joined or left particular group.
Student_lessons should only exist for students while they were active in a particular group.

If a student joined the group 7 days ago, they should have student_lessons for all lessons in the last 7 days, but none for lessons that happened before in that group.

This will require some tinkering with SQL. I suspect this will make the query MUCH less performant but the next step will be to materialize it and setup a refresh schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

2 participants