-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Section type grade aggregation for Trends #243
Comments
This seems interesting. Can I work on this ? |
Definitely! This will likely involve setting up some more sophisticated aggregation pipelines since ideally we want to avoid needing to do any sort of schema changes to accommodate this. |
Hi @jpahm, I've made some significant progress in modifying the existing stages (if needed) and making additional stages for the section-type pipeline. It works as expected, but I have a few questions. 1/Function 2/You suggested that we want to avoid making any changes to schema. But then fields of the response wouldn't be in the desirable order. I have to add the following to
The response then would be:
If I instead only used
Do you think it's fine if I just need to use 3/Should the response have all section types listed even when some types have empty array? For example, the response to
because that semester only has 2 sections. Thank you. |
Hey! Sorry about the slow reply, I've been buried in finals work recently.
|
I don't think it matters for Trends but I think removing the ones with empty arrays makes more sense since its not like we're sending empty arrays for every semester. |
Got it! Thank you all for the response. It should be taken care of as soon as I’m done with the finals. |
Overview
Trends is looking to add a new filter for grade data to aggregate based on section type. The UTD section types are as follows:
Changes
Currently Trends has a filter for semester which is why Trends uses the
/grades/semester
endpoint.This issue is to create a new endpoint:
/grades/semester/sectionType
that returns grade data broken down by semester and then by section type within each semester. This would involve changes to the api/controllers/grades.go file.Response format
/grades/semester
response format/grades/semester/sectionType
response formatThe text was updated successfully, but these errors were encountered: