office-hours-help-queue icon indicating copy to clipboard operation
office-hours-help-queue copied to clipboard

Rate Limiting

Open maxim123 opened this issue 8 years ago • 1 comments

If ≥ n students are signed up on a queue, prevent students from creating a new request during the first t minutes after their previous request has been resolved, so as to prevent students from signing up immediately after they have been helped. Let the course's staff set n and t in the Admin Panel.

maxim123 avatar Jun 23 '17 22:06 maxim123

I don't think this would be too bad. We could add new columns for n and t on the Course model, along with getters/setters in the admin interface. Then just create a custom validator on CourseQueueEntry, which already stores requester_id and a resolved_at timestamp.

One catch is that there's not currently any error handling on the frontend, so some functionality would need to be added to propagate a useful message up to the end user letting them know why their enqueue was rejected.

mterwill avatar Aug 21 '17 01:08 mterwill