Overview
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
Accessibility Requirements
NA
Resources
Overview
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
contentcuration/viewsetsand name itrecommendations.pyutils/automation_manager.pyto connect to the backend./recommendurl incontentcuration/urls.pyAcceptance Criteria
/recommendis implementedAssumptions and Dependencies
Accessibility Requirements
NA
Resources