Can't delete an assessment with no visible submissions
Description
Attachments
is incorporated by
is related to
Activity

Sam Ottenhoff May 1, 2020 at 7:59 AM
I am attempting to resolve this in

Raúl Sánchez Vegas May 21, 2019 at 8:36 AM
Sorry, I'm rather busy right now with local tasks. At least for now I am not able to work on it. Maybe I will retake it later.

Derek Ramsey May 21, 2019 at 8:04 AM
Any updates on this issue? Instructors are still unable to delete assessments with submissions from users who are no longer in the site.

Mateu Llas Rubio April 25, 2019 at 5:07 AM
We have verified that this issue persists in trunk code.
We have verified it in https://trunk-oracle.nightly.sakaiproject.org
We have added the corresponding label in "Affects Versions"

Raúl Sánchez Vegas August 22, 2017 at 2:57 AM
Hi
Sorry for my late response, I was on holiday. Sorry I have not developed the *Remove Anyway* option due that it was only an altenative suggestion for this PR. I will try to develop it as soon as I can after closing some important local tasks.
Anyway you are able to remove a published assessment with submissions by setting to 2 the STATUS field from the published assessments table (SAM_PUBLISHEDASSESSMENT_T). Regards,
Raúl
When attempting to delete a published assessment with no visible submissions, the following message is received:
"The assessment ___________ has submissions. In order to delete this assessment, you must first delete all submissions associated with it."
The instructor has actually used the "view site as student" feature and submitted the assessment as a a student. This submission attempt cannot be deleted in the UI and must be removed in the database.
Steps to reproduce:
Publish any assessment
As the instructor, use the "view site as student" feature and take the assessment
Exit student view
Attempt to delete the assessment
See message indicating that submission attempts need to be deleted before assessment can be removed
Choose "Remove Submissions"
No submission attempts are visible in list of students