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: check course start date for courseware search #35740

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

alangsto
Copy link
Contributor

Description

The current courseware search design does not account for whether or not the course being searched has been properly indexed. In order to only enable courseware search for courses that have been indexed, a new feature setting COURSEWARE_SEARCH_INCLUSION_DATE should be included and used to denote a date from which all courses have been indexed if their start date is greater than the inclusion date.

COSMO-309

@alangsto alangsto merged commit 338a0a1 into master Oct 30, 2024
49 checks passed
@alangsto alangsto deleted the alangsto/update_courseware_search_enabled branch October 30, 2024 12:52
start_date = CourseOverview.get_from_id(course_key).start

# only include courses that have a start date later than the setting-defined inclusion date
if inclusion_date:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we set enabled to False without the inclusion_date value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there's no inclusion date, we should just rely on the default behavior in this view, which is why this is separated into a separate conditional.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

4 participants