refactor!: turn on homepage course API V2 consumption by default (#1307)
* refactor!: turn on homepage course API V2 consumption by default Turn on getting courses from the HomePageCourses API which allows pagination, filtering and ordering. See https://github.com/openedx/edx-platform/pull/34173 for more details on the API implementation. * fix: home page initial a-z course sort --------- Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
This commit is contained in:
2
.env
2
.env
@@ -41,7 +41,7 @@ HOTJAR_APP_ID=''
|
||||
HOTJAR_VERSION=6
|
||||
HOTJAR_DEBUG=false
|
||||
INVITE_STUDENTS_EMAIL_TO=''
|
||||
ENABLE_HOME_PAGE_COURSE_API_V2=false
|
||||
ENABLE_HOME_PAGE_COURSE_API_V2=true
|
||||
ENABLE_CHECKLIST_QUALITY=''
|
||||
ENABLE_GRADING_METHOD_IN_PROBLEMS=false
|
||||
LIBRARY_MODE="v1 only"
|
||||
|
||||
@@ -44,7 +44,7 @@ HOTJAR_APP_ID=''
|
||||
HOTJAR_VERSION=6
|
||||
HOTJAR_DEBUG=true
|
||||
INVITE_STUDENTS_EMAIL_TO="someone@domain.com"
|
||||
ENABLE_HOME_PAGE_COURSE_API_V2=false
|
||||
ENABLE_HOME_PAGE_COURSE_API_V2=true
|
||||
ENABLE_CHECKLIST_QUALITY=true
|
||||
ENABLE_GRADING_METHOD_IN_PROBLEMS=false
|
||||
LIBRARY_MODE="mixed"
|
||||
|
||||
@@ -41,7 +41,7 @@ const useStudioHome = (isPaginated = false) => {
|
||||
useEffect(() => {
|
||||
if (isPaginated) {
|
||||
const firstPage = 1;
|
||||
dispatch(fetchStudioHomeData(location.search ?? '', false, { page: firstPage }, true));
|
||||
dispatch(fetchStudioHomeData(location.search ?? '', false, { page: firstPage, order: 'display_name' }, true));
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user