Skip to content

Task Prioritisation Recommender Service#94

Open
rashi-agrawal29 wants to merge 1 commit intothoth-tech:Feature/Task-Priorfrom
rashi-agrawal29:Feature/Task-Prior
Open

Task Prioritisation Recommender Service#94
rashi-agrawal29 wants to merge 1 commit intothoth-tech:Feature/Task-Priorfrom
rashi-agrawal29:Feature/Task-Prior

Conversation

@rashi-agrawal29
Copy link
Copy Markdown

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

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

The feature was tested using the following approaches:

  • Manual API testing using curl
  • Validation of task retrieval across multiple enrolled units
  • Verification of priority score calculations (deadline, effort, workload)
  • Sorting validation to ensure tasks are returned in descending priority order

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if appropriate
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have created or extended unit tests to address my new additions
  • New and existing unit tests pass locally with my changes

If you have any questions, please contact @macite or @jakerenzella.

@rashi-agrawal29 rashi-agrawal29 changed the title feat: add task prioritisation service Task Prioritisation Recommender Service Apr 29, 2026
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.

1 participant