Reduce SQL queries for querying files when creating submissions

This is especially useful for the RemoteEvaluationsController.

Closes CODEOCEAN-KX
This commit is contained in:
Sebastian Serth
2023-04-02 17:05:22 +02:00
parent fb2a87144d
commit 0aa73d30e9
3 changed files with 9 additions and 5 deletions

View File

@ -131,7 +131,7 @@ module CodeOcean
end
def set_ancestor_values
%i[feedback_message file_type_id hidden name path read_only role weight].each do |attribute|
%i[feedback_message file_type hidden name path read_only role weight].each do |attribute|
send(:"#{attribute}=", ancestor.send(attribute))
end
end