devhub-tud / devhub

DevHub is a software system designed to give students a simple practical introduction into modern software development.
15 stars 8 forks source link

Fix progress bar for TA view of handed in deliveries #472

Closed pilmus closed 7 years ago

pilmus commented 7 years ago

When a TA goes to the page where they can find the deliveries assigened to them, the progress bar displays incorrectly. This happen because getAssignmentStats in DeliveriesBackend creates a new AssignmentStats object with assignment.getCourseEdition().getGroups() as a second parameter.

This is good for when the currentUser is an admin, but if currentUser is a TA, we want only the stats for the deliveries they are assigned to.