Calendar import from site with Tests & Quizzes events results in old links

Description

If a user imports from one site to another, calendar events created by Tests & Quizzes remain, with the link to take the test pointing to the original site. 

We have instructors who copy content from a master template into their courses for each semester using the Site Info - Import from Site method. We also have instructors teaching multiple sections who will import from section 1 into section 2. We have seen that if the original site has Tests & Quizzes published and set to create the calendar event, these events are also present in the destination site, with the URL to take the test still pointing to the original. If the instructor publishes the test in the destination site, that test could be on the calendar twice. One link works for students, one does not. 

I feel that these events should not be imported, as they will be recreated if/when the instructor publishes the tests. This would also mirror the behavior of calendar events created by Assignments. 

Developer Note: Actually since this fix borrows logic from CC+Import, this fix should suppress the copying of T&Q Dates, Assignment Dates (already in the code), and Discussion Topic deadlines.

Attachments

3
  • 07 Mar 2025, 08:52 PM
  • 07 Mar 2025, 08:52 PM
  • 29 Jan 2022, 03:47 PM

Activity

Show:

Andrea Schmidt March 10, 2025 at 6:10 PM

Verified the calendar entries are not present after a cc+ or import from site import:

25x: https://trunk-maria.nightly.sakaiproject.org/, build: 49e1194c

Also tested publishing the quizzes in each site and with students not present in the export site, verified they were able to access the quiz in the import site using the calendar link once the quizzes were published.

Automation for Jira March 7, 2025 at 8:57 PM

A pull request has been created, "SAK-42033 Calendar import from site with Tests & Quizzes events results in old links", you can see it at https://github.com/sakaiproject/sakai/pull/13418

Charles R Severance March 7, 2025 at 8:54 PM

I added an IMSCC attachment with a quiz and one non-quiz calendar item (unpublished) and an IMSCC with a published quiz and a calendar with both a quiz and non-quiz calendar event. You can use the unpublished IMSCC to get the test started in Site 1 and you can use the published IMSCC to make sure that the quiz calendar event is (still) not imported on CC+Import.

Charles R Severance March 7, 2025 at 8:45 PM

Actually since this fix borrows logic from CC+Import, this fix should suppress the copying of T&Q Dates, Assignment Dates (already in the code), and Discussion Topic deadlines. Might want to expand the test plan.

Charles R Severance March 7, 2025 at 4:10 PM

Hi all, I am going to take a look at this since it looks like improvements to import can be applied to site copy.

Fixed

Details

Priority

Fix versions

23 Status

Please Merge

22 Status

Please Merge

21 Status

Please Merge

Assignee

Reporter

Created June 27, 2019 at 10:58 AM
Updated March 10, 2025 at 7:31 PM
Resolved March 7, 2025 at 11:05 PM

Flag notifications