Skip to content
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

Open
TyHil opened this issue Nov 23, 2024 · 0 comments
Open

Section type grade aggregation for Trends #243

TyHil opened this issue Nov 23, 2024 · 0 comments

Comments

@TyHil
Copy link
Member

TyHil commented Nov 23, 2024

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:

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

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

[
  {
    "_id": string, //ex 22S
    "grade_distribution": number[14]
  },
  ...
]

/grades/semester/sectionType response format

[
  {
    "_id": string, //ex 22S
    "data": [
      {
        "type": string, //ex 0xx
        "grade_distribution": number[14]
      },
      ...
    ]
  },
  ...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant