source-academy / backend

Backend of Source Academy @ NUS, LMS extension of Source Academy (Elixir, Ecto, Phoenix, PostgreSQL)
https://sourceacademy.nus.edu.sg
Apache License 2.0
39 stars 50 forks source link

Dashboard routes: update from ungraded tracking by group to unpublished tracking by group #1099

Open josh1248 opened 7 months ago

josh1248 commented 7 months ago

Related to #965 and https://github.com/source-academy/frontend/pull/2856

requires pairing with frontend tweaks as in https://github.com/source-academy/frontend/issues/2898.

image

After the changes in the above pull requests, it is now required for assessments to be published before they are visible to students . However, the dashboard still currently reflects only the ungraded submissions out of the total submissions per group, which is taken from a backend route (see above picture). A more useful tracking field for admins would be to track the number of published submissions instead rather than graded submissions - otherwise, this dashboard would not reflect the feedback that the students receive from the avengers. To solve this, the backend route that returns the dashboard details by group would need to be tweaked to return the number of published instead of graded submissions for use by the frontend, which would need to be adjusted accordingly.

GabrielCWT commented 2 months ago

We should also combine the columns e.g. ungraded missions a/b where a is ungraded missions and b is submitted missions