autolab / Autolab

Course management service that enables auto-graded programming assignments.
http://www.autolabproject.com/
Apache License 2.0
743 stars 209 forks source link

Version numbering should reset on submission deletion #2109

Closed damianhxy closed 3 months ago

damianhxy commented 4 months ago

As a result on #2024, version numbering of submissions no longer resets after the deletion of a submission.

e.g. previously, creating submissions 1 and 2, deleting both, and then creating a new submission would result in version 1 again.

Now, it results in version 3.

To remedy, add the necessary logic to AUD's update_latest_submissions, which is called on after_destroy of a submission.