Deleting Programming Exercises Causes 500 Errors #10351
Labels
bug
exercise
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
Describe the bug
When attempting to delete exercises in Artemis, I frequently encounter 500 errors. The logs indicate a foreign key constraint violation related to
programming_submission_id
in thebuild_log_statistics_entry
table.That happens only on our production systems with plenty of submissions and students.
To Reproduce
May be difficult to reproduce because it happens on production systems.
Expected behavior
Deleting an exercise should succeed without requiring multiple attempts.
Screenshots
Which version of Artemis are you seeing the problem on?
7.9.1
What browsers are you seeing the problem on?
Chrome
Additional context
Possible Cause
The issue might be due to foreign key constraints preventing the deletion of a
submission
entry before its relatedbuild_log_statistics_entry
records are removed.Suggested Fix
build_log_statistics_entry
are deleted before deleting thesubmission
entry.Environment
Relevant log output
The text was updated successfully, but these errors were encountered: