Autolab icon indicating copy to clipboard operation
Autolab copied to clipboard

[Feature] Reread yaml Files on Reload

Open StevenJamesMoore opened this issue 6 years ago • 1 comments

Problem: Today, I needed to modify one of the assessments in my class (the link to my class is https://autolab.andrew.cmu.edu/courses/15122-f17), in particular the problem set. I uploaded the new file on AFS (/afs/cs.cmu.edu/academic/class/15122-f17/autolab/speller/speller.yml) but clicking on "Reload config file" for that assessment and trying to regrade the (test) submissions in there did not do anything. I had to manually propagate the configuration updates on the web interface.

Reason: Currently reload only rereads "course.rb/.rb". The yaml files are only ever read when assessments are imported.

Feature Suggestion: Make reload reread the yaml file, as a common change made is to deployed homework, which would require this to avoid the manual propagation.

Compliment: I use scripts to load my assessments on Autolab (the link to my class is https://autolab.andrew.cmu.edu/courses/15122-f17). That works like a charm. 👍

Reported from: INC0287461

StevenJamesMoore avatar Sep 15 '17 17:09 StevenJamesMoore

This seems to be a matter of removing the new_record? check from assessment.rb#load_yaml and calling @assessment.load_yaml inside assessments_controller.rb#reload

Edit: And also something like assessment.problems.destroy_all inside problem.rb#self.deserialize_list. But not sure what this does to existing submissions.

damianhxy avatar Jun 09 '22 02:06 damianhxy

After discussion with Iliano, this is now a non-issue

damianhxy avatar Nov 21 '23 18:11 damianhxy