Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set publish date in future for scheduled state variants #4453

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AfaqShuaib09
Copy link
Contributor

@AfaqShuaib09 AfaqShuaib09 commented Sep 26, 2024

PROD-4185

This PR set publish date in future for scheduled state execed variants to support future variants feature.

Comment on lines -2603 to -2609
# Use external course availability for ExecEd course run types
# Check additional_metadata existence as a fail safe for some unit tests
# where this flow is triggered via signals before AdditionalMetadata object can be persisted
if self.type.slug in [CourseRunType.UNPAID_EXECUTIVE_EDUCATION, CourseRunType.PAID_EXECUTIVE_EDUCATION] and \
self.course.additional_metadata:
return self.external_course_availability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This customized logic won't be required now. As we have moved Course Run's data for ExecEd from AdditionalMetadata to CourseRun model just like OCs

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.

1 participant