openfun / potsie

:bar_chart: Grafana dashboards suite for learning analytics
https://demo.potsie.education
MIT License
10 stars 2 forks source link

Difference between the number of viewers and the number of enrolled students in "Course videos overview" (teacher dashboard) #69

Closed cuchulainn-fun closed 1 year ago

cuchulainn-fun commented 1 year ago

Bug Report

Expected behavior/code

Expected behavior: that the number of viewers cannot exceed the number of enrolled students of the course. It can be equal or less, because that metric display the number of enrolled users that played at least one vidéo.

Actual Behavior

This bug was observe in the "Course videos overview" of the teacher dashboard.

For some courses in this view of the teacher dashboard, the number of viewers is greater than the number of enrolled students of the course.

Steps to Reproduce At my level, I am not able to reproduce the problem technically speaking, but in the Potsie interface, i observe this behavior on several courses.

My observations:

I assume that there is a cumulative number of viewers between sessions and that there is a problem in the query of this metric "viewers".

Environment