Skip to content

Conversation

@annagav
Copy link
Contributor

@annagav annagav commented Dec 3, 2025

What are the relevant tickets?

Fix https://github.com/mitodl/hq/issues/9450

Description (What does it do?)

Add a condition on product for is_upgradable

For now we check for product in the dialog rendering logic.

How can this be tested?

Create a course with multiple course runs.
Some course runs would be enrollable and upgradable. But if a course run has no associated product then is should show up in the api as "is_upgradable" false.

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

OpenAPI Changes

Show/hide ## Changes for v0.yaml:
## Changes for v0.yaml:


## Changes for v1.yaml:


## Changes for v2.yaml:


Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@annagav annagav changed the title Updating is_upgraded for CourseRun Updating is_upgradable for CourseRun Dec 3, 2025
@cp-at-mit cp-at-mit self-assigned this Dec 4, 2025
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@annagav annagav merged commit 22bee79 into main Dec 19, 2025
9 checks passed
@odlbot odlbot mentioned this pull request Dec 22, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants