fix: update dashboard recommendations endpoint (#33072)
- Update recommendations endpoint from learner recommendations to edx recommendations. - Added docstring to tell contributors that the recommendations related code has been moved to edx-recommendations plugin. VAN-1596
This commit is contained in:
@@ -48,6 +48,9 @@ log = logging.getLogger(__name__)
|
||||
|
||||
class AboutPageRecommendationsView(APIView):
|
||||
"""
|
||||
IMPORTANT: Please do not update or use this API. This code has been moved to edx-recommendations plugin.
|
||||
Please use that plugin for further code changes. This API will be removed as part of VAN-1427.
|
||||
|
||||
**Example Request**
|
||||
|
||||
GET api/learner_recommendations/amplitude/{course_id}/
|
||||
|
||||
@@ -26,7 +26,7 @@ class RecommendationsPanel extends React.Component {
|
||||
};
|
||||
|
||||
getCourseList = async () => {
|
||||
const coursesRecommendationData = await fetch(`${this.props.lmsRootUrl}/api/learner_recommendations/courses/`)
|
||||
const coursesRecommendationData = await fetch(`${this.props.lmsRootUrl}/api/edx_recommendations/learner_dashboard/amplitude/`)
|
||||
.then(response => response.json())
|
||||
.catch(() => ({
|
||||
courses: this.props.generalRecommendations,
|
||||
|
||||
Reference in New Issue
Block a user