Skip to content

Commit 50c2f97

Browse files
committed
Delete invalid assess testruns
Amends 264927e
1 parent bcb25b2 commit 50c2f97

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# frozen_string_literal: true
2+
3+
class DeleteInvalidAssessTestruns < ActiveRecord::Migration[8.0]
4+
class Testrun < ApplicationRecord
5+
end
6+
7+
disable_ddl_transaction!
8+
9+
def change
10+
# In commit 9c3ec3c (2023-02-17), we introduced a bug, which added an additional undesired assess testrun with no 'passed' value.
11+
# We fixed this bug in 264927e (2023-07-15), but haven't removed the invalid testruns yet.
12+
Testrun.where(
13+
cause: 'assess',
14+
passed: nil,
15+
output: nil,
16+
file_id: nil,
17+
container_execution_time: nil,
18+
waiting_for_container_time: nil,
19+
exit_code: nil
20+
).delete_all
21+
end
22+
end

db/schema.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)