From ca39aa4dae8c309ca5a23fd19dc561e656ccd72e Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 13 Oct 2024 21:41:43 +0200 Subject: [PATCH] Remove additional occurrences of TestrunExecutionEnvironment With these changes, everything except the model and the database column is removed. The latter two can be removed once the respective research is done, too. Amends 7aaeac03 --- app/controllers/submissions_controller.rb | 1 - app/models/submission.rb | 3 --- 2 files changed, 4 deletions(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 6014c0aea..ab72d6570 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -439,7 +439,6 @@ def save_testrun_output(cause) waiting_for_container_time: @testrun[:waiting_for_container_time] ) TestrunMessage.create_for(testrun, @testrun[:messages]) - TestrunExecutionEnvironment.create(testrun:, execution_environment: @submission.used_execution_environment) end def send_hints(tubesock, errors) diff --git a/app/models/submission.rb b/app/models/submission.rb index 90883f1df..7c38c9aa0 100644 --- a/app/models/submission.rb +++ b/app/models/submission.rb @@ -48,8 +48,6 @@ class Submission < ApplicationRecord validates :cause, inclusion: {in: CAUSES} - attr_reader :used_execution_environment - # after_save :trigger_working_times_action_cable def collect_files @@ -287,7 +285,6 @@ def score_file(output, file, requesting_user) waiting_for_container_time: output[:waiting_for_container_time] ) TestrunMessage.create_for(testrun, output[:messages]) - TestrunExecutionEnvironment.create(testrun:, execution_environment: @used_execution_environment) filename = file.filepath