Skip to content

feat: make course access duration limits configurable - #427

Open
hiteshkava wants to merge 9 commits into
release-ulmofrom
feat/audit-expiry-duration-config
Open

feat: make course access duration limits configurable#427
hiteshkava wants to merge 9 commits into
release-ulmofrom
feat/audit-expiry-duration-config

Conversation

@hiteshkava

Copy link
Copy Markdown

Description

Updated the course access duration logic to make the minimum and maximum duration configurable through Django settings.

Changes

  • Changed the hardcoded minimum duration from 4 weeks to a configurable setting.
  • Set the default minimum duration to 1 week to support the audit expiry experiment.
  • Kept the maximum duration at 18 weeks through a configurable setting.
  • Added COURSE_ACCESS_DURATION_MIN_WEEKS and COURSE_ACCESS_DURATION_MAX_WEEKS settings in openedx/envs/common.py.
  • Updated the duration calculation to use these settings when applying the minimum and maximum limits.

Configuration

  • COURSE_ACCESS_DURATION_MIN_WEEKS = 1
  • COURSE_ACCESS_DURATION_MAX_WEEKS = 18

This allows the minimum and maximum course access duration to be changed through configuration without modifying the duration calculation logic.

Jira: https://2u-internal.atlassian.net/browse/LP-981

@hiteshkava
hiteshkava force-pushed the feat/audit-expiry-duration-config branch from 9ffcbfa to e72cc22 Compare August 14, 2026 07:38
@hiteshkava
hiteshkava force-pushed the feat/audit-expiry-duration-config branch from e72cc22 to 376c7ee Compare August 14, 2026 07:39
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