Closed ezhang887 closed 3 years ago
I'm not very familiar with how broadway stores information in its queue. is there a way to fetch how many jobs are scheduled before a certain job? I think that will be much more useful than just knowing the total jobs scheduled for a course.
This diff adds an endpoint for clients to fetch how long the queue is for a given course. This way, on-demand can now use this endpoint to show students an estimate of how many jobs are currently queued before they click grade.
I've also added some tests for this (and ran the linting/test commands in the travis.yml).
Related issue: https://github.com/illinois-cs241/broadway-on-demand/issues/80