Task Prioritisation Recommender Service#94
Open
rashi-agrawal29 wants to merge 1 commit intothoth-tech:Feature/Task-Priorfrom
Open
Task Prioritisation Recommender Service#94rashi-agrawal29 wants to merge 1 commit intothoth-tech:Feature/Task-Priorfrom
rashi-agrawal29 wants to merge 1 commit intothoth-tech:Feature/Task-Priorfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a Task Prioritization API that recommends and ranks student tasks across all enrolled units based on a weighted priority scoring model.
The service aggregates all incomplete tasks for the authenticated student and computes a priority score using three factors:
Deadline urgency (based on days remaining)
Estimated effort (currently derived from task weighting; placeholder for future AI integration)
Workload (based on number of incomplete tasks and average target grade across units)
Tasks are then sorted in descending order of priority and returned via a new API endpoint:
GET /api/tasks/recommended
This feature enables a unified, cross-unit task recommendation system for the student dashboard.
Type of change
How Has This Been Tested?
The feature was tested using the following approaches:
Checklist:
If you have any questions, please contact @macite or @jakerenzella.