Skip to content

Commit

Permalink
comment out enum status for Project and ISA
Browse files Browse the repository at this point in the history
to see if the tests reveal more info about how it is used before fixing
  • Loading branch information
stuzart committed Dec 17, 2024
1 parent d9e6658 commit 96a1f51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/assay.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Assay < ApplicationRecord
include Seek::Ontologies::AssayOntologyTypes

enum status: %i[planned running completed cancelled failed]
#enum status: %i[planned running completed cancelled failed]
belongs_to :assignee, class_name: 'Person'

# needs to before acts_as_isa - otherwise auto_index=>false is overridden by Seek::Search::CommonFields
Expand Down
2 changes: 1 addition & 1 deletion app/models/investigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Investigation < ApplicationRecord

validates :projects, presence: true, projects: { self: true }

enum status: [:planned, :running, :completed, :cancelled, :failed]
#enum status: [:planned, :running, :completed, :cancelled, :failed]
belongs_to :assignee, class_name: 'Person'

has_many :study_sops, through: :studies, source: :sops
Expand Down
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Project < ApplicationRecord

has_annotation_type :funding_code

enum status: [:planned, :running, :completed, :cancelled, :failed]
#enum status: [:planned, :running, :completed, :cancelled, :failed]
belongs_to :assignee, class_name: 'Person'

belongs_to :programme
Expand Down
2 changes: 1 addition & 1 deletion app/models/study.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Study < ApplicationRecord

enum status: [:planned, :running, :completed, :cancelled, :failed]
#enum status: [:planned, :running, :completed, :cancelled, :failed]
belongs_to :assignee, class_name: 'Person'

searchable(:auto_index => false) do
Expand Down

0 comments on commit 96a1f51

Please sign in to comment.