cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using API to change course participation setting to "Term" does not clear start_at end_at dates

Using API to change course participation setting to "Term" does not clear start_at end_at dates

Canvas white logo

This behavior is resolved in the 2021-09-15 deploy.

Known issues indicate notable behaviors that has been escalated to the Canvas engineering team. Known issues are not a guarantee for an immediate resolution. This document is for informational purposes only and does not replace the Support process. If you are encountering the behavior outlined in this document, please ensure you have submitted a Support case (per your institution's escalation process) so Canvas Support can adequately gauge the overall customer impact and prioritize appropriately.
Description


Dates set with the "Course" participation setting are not removed when setting course[restrict_enrollments_to_course_dates] to false via api.

Expected Behavior


Clear out the course start_at and end_at dates when setting course[restrict_enrollments_to_course_dates] to false.

Workaround


Set course dates to null while making the API call.

Steps to Reproduce

 

  1. Create a course.

  2. Set the course's participation setting to "Course" and fill in end date.

  3. Use API to set course[restrict_enrollments_to_course_dates] to false.

  4. Check the api for the course to see that dates are still set.

  5. Bonus Round :

    1. Do the same thing but ensure the end date is in the past, publish the course.

    2. Now the course is considered concluded by course dates.

    3. Now the end date is before the start date and will throw errors for anything that checks that. Like importing course content.

 

Additional Info


LS-2553

Tags (1)