Skip to content

feat: always patch advanced settings after course clone

Kaustav Banerjee requested to merge kaustav/force_update_advanced_settings into main

Description

This MR adds forced patching of advanced settings for cloned courses.

Before this change, advanced settings would be patched only if it was passed by the user through the clone course API.

Now, the old values would be patched, if no new values are passed. This change was done to ensure course publish is triggered for the newly cloned courses

Testing instructions

  1. This change is deployed to this sandbox
  2. Trigger the clone course API for this sandbox: URL: https://clone-course.lms.kaustav-two.eshe.opencraft.hosting/api/v1/clone/ Data:
{
    "source_id": "course-v1:TestX+Test_101+2022_Test",
    "dest_id": "course-v1:TestX+Test_101+2022_Test_clone"
}
  1. Verify that the course has been cloned successfully.
  2. Click on View Live from studio to open the course in the learning MFE.
  3. Verify that the learning MFE renders the course without any issues.

Deadline

"None" if there's no rush, or provide a specific date or event (and reason) if there is one.

Other information

BB-7664 BB-7787

Edited by Kaustav Banerjee

Merge request reports