Skip to content

Add SA assignment endpoint and logic#34

Open
DanielSolano1 wants to merge 2 commits intomainfrom
DanielSolano/Assign-SA
Open

Add SA assignment endpoint and logic#34
DanielSolano1 wants to merge 2 commits intomainfrom
DanielSolano/Assign-SA

Conversation

@DanielSolano1
Copy link
Copy Markdown
Collaborator

Assign SA Algorithm Integration

Description
Implemented and integrated the algorithm that assigns students to Student Accelerators (SAs) based on group load balancing. This functionality is now available via the endpoint:
PUT /api/accelerate/students/assign-sa/{student_id}

Issues Fixed
No direct issue

Tests
Tested locally using pytest. All tests passed successfully, including:

7 successful assignment cases
2 failure scenarios (e.g., no SA available, database error handling) - FIXED

Notes
Unable to test on Heroku due to two-factor authentication access restrictions.

Modified the Student model to change the ethnicities relationship loading strategy from lazy="joined" to lazy="select" to prevent unwanted eager loading of missing fields in the database.

Checklist
I've reviewed the contribution guide
I've confirmed the changes work on my machine
This pull request is ready for review

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