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: filter restricted runs on APIs #4356

Closed zawan-ila closed 5 months ago

zawan-ila commented 6 months ago

Internal tickets: PROD-4005 + PROD-4006

Hide restricted runs across APIs by default. Also do not include them when calculating fields like course_run_statuses. If a query-param include_restricted=<some_value> is present, do not hide them

Testing

  1. Create restricted runs in your system and link them with courses, programs, etc.
  2. Run update_index
  3. Verify that runs are hidden on all APIs by default and are revealed on adding the query params.