not needed.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
}.merge(attributes['scheduling_parameters'] || {})
end
- # The 'group_class' for a group should default to 'project'
- def fill_group_defaults
- if !attributes.key?("group_class") || attributes['group_class'].nil? || attributes['group_class'].empty?
- self.group_class = 'project'
- end
- end
-
# ArvadosModel.find_by_uuid needs extra magic to allow it to return
# an object in any class.
def self.find_by_uuid uuid
# already know how to properly treat them.
attribute :properties, :jsonbHash, default: {}
- before_validation :fill_group_defaults
validate :ensure_filesystem_compatible_name
validate :check_group_class
before_create :assign_name