Autolab
Autolab copied to clipboard
[Feature] Reread yaml Files on Reload
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/
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
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.
After discussion with Iliano, this is now a non-issue