Skip to content

Commit

Permalink
Remove additional occurrences of TestrunExecutionEnvironment
Browse files Browse the repository at this point in the history
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 7aaeac0
  • Loading branch information
MrSerth authored and Dome-GER committed Oct 15, 2024
1 parent cea4b45 commit ca39aa4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/controllers/submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions app/models/submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ca39aa4

Please sign in to comment.