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:
Mubbshar Anwar
2023-08-23 16:53:32 +05:00
committed by GitHub
parent 7ae64a5eb4
commit 6eba79af41
2 changed files with 4 additions and 1 deletions

View File

@@ -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}/

View File

@@ -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,