How do you setup the “access expired” for a course in Open edX ? I can see on edx.org that new courses with certificates can have an expiration date if you are still in the audit track but I don’t now how to replicate that behavior on our own instance. We are running Ironwood.2.
Is it something only available because of the paywall on edx.org?
If not, what triggers that behavior? Is there an environment variable that needs to be set?
Andrés, have you seen any answer to my question? Me neither. So, no I didn’t find out about this… Sorry.
Sometimes it takes time for the community to come up with an answer. People are busy. People are not seeing the questions or are unable to answer. It may take time. Sometimes we need to be patient.
That’s why if someone finds a solution, they should report it here and mark it as Solution at the bottom of their post.
It may be part of the edx-when package, but I didn’t have time to explore it if it is now part of Open edX and Juniper. Maybe it’s just a lack of documentation? That would not be the first time. Documenting is hard. Especially in a major platform like Open edX.
@sambapete We are also interested in setting up access is expiring or expired notifications for a course when a learner is blacklisted or course end date has passed. @marcotuts Is there any documentation on how to setup Course Expiration?
Looking further into this I noticed this article. This seems to work in edX ‘audit’ → ‘verified’ course mode progression.
I couldn’t find any documentation at https://docs.edx.org/ that would help explain how to set this course expiration with notification up, so I viewed the Ironwood codebase to see what’s happening and debugged a little.
Course Start Date – 08/01/2020
Course End Date – 10/01/2020
Enrollment Start Date – 08/01/2020
Enrollment End Date – not set
I also went into course-discovery and set the course-v1:edx+DemoX+Demo_Course (http://localhost:18381/admin/course_metadata/courserun/) value Weeks to complete: equal to 5 (Estimated number of weeks needed to complete this course run.)
Setup the CourseDurationLimit for the edX organization, so that, any courses with this org will have a duration limit check applied. If this is not set then the CourseExpiredDate.date call below for get_user_course_expiration_date will not be called and no AuditExpiredError will be thrown. http://localhost:18000/admin/course_duration_limits/coursedurationlimitconfig/1/change/
Context > Org: edX
Configuration:
Enabled: True
. Enabled AS Of: Jan 1, 2019, midnight
Here is the message on the Course Outline page when viewing the course as Learner in Audit mode.
Audit Access Expires Sep 5, 2020
You lose all access to this course, including your progress, on Sep 5, 2020.
Upgrade by Sep 25, 2020 to get unlimited access to the course as long as it exists on the site. Upgrade now.
Check for course expiration is done here to see if a user can get access to a course.
CourseExpiredDate.date – Gets the course expiration date for the individual user.
Details about ‘audit’ mode check for user course duration is here leading in to the verified course mode. Notice that the ‘honor’ mode is excluded here.
Here are some helpful functions for checking whether or not the course has expired and to generate an expiration message.