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

fix: add missing end field #34880

Merged
merged 2 commits into from
May 31, 2024

Conversation

KristinAoki
Copy link
Member

Description

Previously course reruns done in Studio would update the start date to the default start date or the start date provided via the api, but did not update the end date. As a result the end date would be copied from the original run of the course. If the course author did not change it before the re-run, it could end up messing up the start/end dates for a course and list a course as archived instead of active. This change updates the end date for a course rerun the same way it is done for the start date. Now when a course is re-ran it will default to no end date (the behavior as a new course) or have the end date provided via the api. This change impacts Course Authors.

Supporting information

JIRA Ticket: TNL-11477

Testing instructions

  1. Open a course in Studio
  2. Navigate to the Schedule and details page
  3. Update the start date to be today
  4. Update the end date to be tomorrow
  5. Click "Save"
  6. Navigate back to Studio home
  7. Find the course that was just edited
  8. Click "Re-run course"
  9. Fill out the form and create re-run
  10. Navigate to the Schedule and details page
  11. Check the end date, should be empty

Deadline

None

@@ -1040,6 +1041,7 @@ def rerun_course(user, source_course_key, org, number, run, fields, background=T
add_instructor(destination_course_key, user, user)

# Mark the action as initiated
print(fields)
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like lint that needs to be deleted

Copy link
Contributor

@bszabo bszabo left a comment

Choose a reason for hiding this comment

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

Nice! (Tested on remote devstack)

@KristinAoki KristinAoki merged commit 1ef4c0d into master May 31, 2024
47 checks passed
@KristinAoki KristinAoki deleted the KristinAoki/fix-rerun-end-date-before-start-date branch May 31, 2024 13:42
@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.

3 participants