feat: always patch advanced settings after course clone
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
- This change is deployed to this sandbox
- 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"
}
- Verify that the course has been cloned successfully.
- Click on
View Live
from studio to open the course in the learning MFE. - 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
Edited by Kaustav Banerjee