Skip to content

Ent 11150 unsubmitted courses fix#1115

Open
tpanda-sonata wants to merge 2 commits into
openedx:masterfrom
tpanda-sonata:ENT-11150-unsubmitted-courses-fix
Open

Ent 11150 unsubmitted courses fix#1115
tpanda-sonata wants to merge 2 commits into
openedx:masterfrom
tpanda-sonata:ENT-11150-unsubmitted-courses-fix

Conversation

@tpanda-sonata

Copy link
Copy Markdown

Overview

This PR fixes the issue where unsubmitted / unpublished courses were being included
in the Enterprise Catalog report.
During catalog metadata generation, these courses should be excluded to prevent
incorrect content appearing in downstream systems.

What Was Changed

  • Updated filtering logic in content metadata API to exclude:
    • Unsubmitted course runs
    • Draft / unpublished course versions
  • Added validation to ensure catalog content only includes production-ready items
  • Minor code cleanup for readability

JIRA: ENT-11150

Comment on lines -244 to +247
# to ensure active content is always returned
# to ensure active content is always ret

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like an accidental deletion of text.

@pwnage101 pwnage101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rejected for now because I think is_active is too upstream and risky to change. 3rd part LMS integrations should use a customized implementation to avoid inadvertent modification of other content APIs.

More info here: https://2u-internal.atlassian.net/browse/ENT-11150?focusedCommentId=5762901

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