Skip to content

Conversation

@AdvitR
Copy link

@AdvitR AdvitR commented Apr 28, 2024

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.

@AdvitR AdvitR requested review from el-agua and shiva-menta April 28, 2024 21:18
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

Successfully merging this pull request may close these issues.

2 participants