edulinq / autograder-server

A server to automatically grading coding assignments.
MIT License
4 stars 5 forks source link

Added Role Based Addressing Functionality to Report Field and Send Email Command #66

Closed Lucas-Ellenberger closed 7 months ago

Lucas-Ellenberger commented 7 months ago

Allow courses to specify a role or (all roles) to send course reports, in addition to specific emails. The send-email command supports this functionality via a new CLA. The tests show that the new function supports an empty input, sorts emails properly, handles matching a role to users, the to all users with a role, and removes duplicate emails. Redundant information like roles and a * do not produce multiple copies of an email. Emails are returned in all lower case to handle mixed case emails not duplicating the same email. (Ex: email@test.com, EMAIL@test.com only returns email@test.com) This works because a different casing of an email is still the same email.