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

Aggregate Instructor Query for Penn Reviews #669

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AdvitRanawadePenn
Copy link

Developed a new endpoint /api/review/instructors/analysis/ to Penn Course Review to query and retrieve a list of top instructors, either within a specified department or across all departments, based on their performance statistics, primarily focusing on maximum average ratings.

The functionality allows users to specify a range between start and end semesters, or defaults to the complete available data set. it filters the Review objects based on optional parameters such as department and semester range, using the previously-built review_averages function to compute statistics and aggregate them with appropriate annotations. The endpoint was also successfully tested through unit tests.

Possible considerations include the performance implications of the initial data retrieval process, which pulls all Review objects before filtering. This could lead to increased runtime or memory usage, particularly with a large dataset, as each query's complexity scales with the number of reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant