projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14873: Custom JSON attributes that default to [] or {} when nil.
[arvados.git]
/
services
/
api
/
app
/
models
/
pipeline_template.rb
diff --git
a/services/api/app/models/pipeline_template.rb
b/services/api/app/models/pipeline_template.rb
index 97e1426f023018cd7a15e15ecf0d07d8f80aa2e6..b19a2b0f7c6c70f9b84a55d2eabeb5a73cd8ff34 100644
(file)
--- a/
services/api/app/models/pipeline_template.rb
+++ b/
services/api/app/models/pipeline_template.rb
@@
-1,11
+1,20
@@
-class PipelineTemplate < OrvosModel
- include AssignUuid
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class PipelineTemplate < ArvadosModel
+ include HasUuid
include KindAndEtag
include CommonApiTemplate
serialize :components, Hash
include KindAndEtag
include CommonApiTemplate
serialize :components, Hash
- api_accessible :
superuser, :extend =>
:common do |t|
+ api_accessible :
user, extend:
:common do |t|
t.add :name
t.add :components
t.add :name
t.add :components
+ t.add :description
+ end
+
+ def self.limit_index_columns_read
+ ["components"]
end
end
end
end