mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Catalog card should show Start Anytime if the course is archived #2359

Closed annagav closed 2 months ago

annagav commented 2 months ago

What are the relevant tickets?

Fix https://github.com/mitodl/mitxonline/issues/2357

Description (What does it do?)

This PR changes the front end to use a single source of is_archived and makes the catalog display "Start Anytime" even when the course is not `is_self_paced=True' Is archived is used in many places in the frontend, but it's value is not dynamic, so it's better to compute it in the backend.

Screenshots (if appropriate):

Screenshot 2024-08-23 at 6 26 39 PM

How can this be tested?