Overview
Add a new filter for grade data to aggregate based on section type. The UTD section types are as follows:
| Section prefix |
Meaning |
| 0xx |
Normal day lecture (before 5 PM) |
| 0Wx |
Online class |
| 0Hx |
Hybrid day class (online + face-to-face) |
| 0Lx |
LLC-only section |
| 5Hx |
Hybrid night class (online + face-to-face) |
| 1xx |
Lab section (sciences) |
| 2xx |
Discussion section (humanities) |
| 3xx |
Problem section (maths) |
| 5xx |
Night lecture (past 5 PM) |
| 6xx |
Lab night section (past 7 PM) |
| 7xx |
Exam section |
| HNx or HON |
Honors-only |
Proposal
- Add the filter and handle its state in the same way as the semester filter
- Refactor the grade type and gpa calculation function to handle the new data format and use the new API endpoint:
/grades/semester/sectionType in all data calls
Supplementary Information
/grades/semester/sectionType response format
[
{
"_id": string, //ex 22S
"data": [
{
"type": string, //ex 0xx
"grade_distribution": number[14]
},
...
]
},
...
]
Overview
Add a new filter for grade data to aggregate based on section type. The UTD section types are as follows:
Proposal
/grades/semester/sectionTypein all data callsSupplementary Information
/grades/semester/sectionTyperesponse format[ { "_id": string, //ex 22S "data": [ { "type": string, //ex 0xx "grade_distribution": number[14] }, ... ] }, ... ]