You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task involves connecting the recommendations UI to the already implemented backend logic (on studio side). It will require setting up the necessary API endpoint to aid this connection as described below;
Description and outcomes
Add an endpoints that load recommendations
Create a new viewset file under contentcuration/viewsets and name it recommendations.py
Add relevant methods to generate embeddings and load recommendations. Use the utils/automation_manager.py to connect to the backend.
Define the /recommend url in contentcuration/urls.py
Use the created endpoint in the recommendations UI to load recommendations.
Make necessary adjustments so that the loading, error, and pagination states are consistent with the behavior described in the figma designs
Acceptance Criteria
The API endpoint /recommend is implemented
Tests are written to verify correctness of the implemented API endpoint
The endpoint is used to load recommendations. All dummy data loading code is cleaned up
The loading, error, and pagination states are consistent with the figma designs
Assumptions and Dependencies
This is only involve connecting to the backend code and no actual interaction with the curriculum automation API is required
Activity
akolson commentedon Apr 10, 2025
Closed by #4803