Skip to content

Conversation

gumaerc
Copy link
Contributor

@gumaerc gumaerc commented Aug 14, 2025

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/8107

Description (What does it do?)

This PR fixes a bug introduced in #2427, which ironically was supposed to better handle bad data coming in from the API. The PR added filters to ensure that only courses from the current org are pulled in, but then failed to set the orgId parameter on ProgramCollectionItem, and then subsequently ProgramCard. This PR also makes that argument not optional on OrganizationContent, so it's more obvious in the future if the proper filtering is not being applied.

How can this be tested?

  • Follow the instructions in Add support for ProgramCollection #2369 to get set up with a Program Collection
  • None of the courses in the program collection should have their CTA's greyed out, and you should be able to enroll in a module

Copy link
Contributor

@jonkafton jonkafton left a comment

Choose a reason for hiding this comment

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

👍

@gumaerc gumaerc merged commit 95b9319 into main Aug 15, 2025
18 of 19 checks passed
@gumaerc gumaerc deleted the cg/fix-program-collection-org-filter-bug branch August 15, 2025 17:12
@odlbot odlbot mentioned this pull request Aug 15, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants