ubccpsc310 / classy

Course management and automation.
MIT License
2 stars 3 forks source link

Adds queries to get feedback from mongo #105

Closed kdchin closed 10 months ago

kdchin commented 10 months ago

The Feedback table in mongo stores student usage of #check and @c<n>-bot commands. I'd like this API to be able to update the frequency checker via the plugin via the @backend path.

I pretty much copied the code in the @autotest implementation of this method, and adapted it to the mongo interface provided in this file. I'm not sure how to test that it will work though, so let me know if anything looks off!

rtholmes commented 10 months ago

This looks good to me, thanks for making the change! One improvement, which probably isn't worth making but might be worth putting a comment in the code for, is to point out in the AutoTest code that the feature has been added to the backend properly now and it could be moved. I wouldn't make the change because it isn't worth it, but the note might be helpful in case anyone notices the duplication between autotest and backend.