Skip to content

[DEPR]: Remove HomePageCourses API v1 #287

Open
@BryanttV

Description

@BryanttV

Proposal Date

2025-01-28

Target Ticket Acceptance Date

2025-02-11

Earliest Open edX Named Release Without This Functionality

Ulmo - 2025-10

Rationale

The HomePageCourses API v1 will be replaced by v2, which offers improvements including pagination, filtering, and sorting. As of Sumac, v2 is the default API used to query the course listing from Studio.

Removal

To completely remove the API v1 in edx-platform it’s necessary:

Also, it's necessary to remove all references to API v1 in the Authoring MFE. This work is in progress:

Replacement

API v2 completely replaces API v1. The PRs related to functionality are as follows:

Deprecation

API v1 will be marked as deprecated in the platform code in Teak. This will remain so until Ulmo, where it will be removed.

As the feature toggle to enable/disable API v2 will be removed, API v1 will have an internal change, as it will get the courses summary from CourseOverview.get_all_courses(), which implies that it will not query the courses from Mongo, but from MySQL.

Migration

As of the Sumac release the default API v1 is not being used, the authoring MFE uses API v2. If for some reason you are still using v1 we recommend to start using v2 which was based on the previous one, but with some improvements.

It's important to note that the format of the API v2 response has changed a bit with respect to API v1. Previously, courses and archived_courses were returned in separate lists, now all courses are returned in the courses property. Archived courses contain the is_active property set to false.

Additional Info

No response

Task List

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprProposal for deprecation & removal per OEP-21

    Type

    No type

    Projects

    Status

    Draft

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions