openedx / course-discovery

Service providing access to consolidated course and program metadata
https://edx-discovery.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
57 stars 173 forks source link

feat: add CRUD support for RestrictedCourseRun in CourseRun Api #4331

Closed zawan-ila closed 6 months ago

zawan-ila commented 6 months ago

PROD-4004

This PR adds support for marking CourseRuns as restricted through the CourseRun Api

Testing Instructions:

You can test it by hitting the API directly with postman or any other tool and provide the restriction_type parameter. Then verify that the RestrictedCourseRun objects are added/updated appropriately in the database.

Here's how I have been doing it though.

DawoudSheraz commented 6 months ago

Overall, the PR looks good. I have not had a chance to test it out on the local yet.