labimotion 2.1.0.rc1 → 2.1.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d084fef830351ae2182073c7c42a50abd49bc5bc3f20d256860da683ca6c5c8
|
|
4
|
+
data.tar.gz: 24b58889fdc9daeb36267aef35e736c81b56c3fc73dec3a1af06cd1148708875
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bb720347508e464f7f4a0786a7daaeeb0a9fa185efab31543adc28cb2addf0e57877e36128147755772097d46f8103a45275cc00134c1cff4af3f5b774f0e31
|
|
7
|
+
data.tar.gz: 0b9e694ebe9934be89a32147005c314614c3e26ad8f0f1fd79bd7c75207c936fbdc9bd0a594282a0a8c0434d4a4e9e73cf1f4b3d1418a807fc8cfb15c5fecda8
|
|
@@ -188,7 +188,7 @@ module Labimotion
|
|
|
188
188
|
get do
|
|
189
189
|
klass = Labimotion::Segment.find(params[:id])
|
|
190
190
|
list = klass.segments_revisions unless klass.nil?
|
|
191
|
-
present list&.
|
|
191
|
+
present list&.order(created_at: :desc)&.limit(10), with: Labimotion::SegmentRevisionEntity, root: 'revisions'
|
|
192
192
|
rescue StandardError => e
|
|
193
193
|
Labimotion.log_exception(e, current_user)
|
|
194
194
|
[]
|
|
@@ -99,6 +99,7 @@ module Labimotion
|
|
|
99
99
|
element.save!
|
|
100
100
|
update_element_labels(element, params[:user_labels], current_user.id)
|
|
101
101
|
element.save_segments(segments: params[:segments], current_user_id: current_user.id)
|
|
102
|
+
element.save!
|
|
102
103
|
element
|
|
103
104
|
rescue StandardError => e
|
|
104
105
|
Labimotion.log_exception(e, current_user)
|
|
@@ -135,7 +136,7 @@ module Labimotion
|
|
|
135
136
|
element.reload
|
|
136
137
|
# element.properties = update_vocabularies(element.properties, current_user, element)
|
|
137
138
|
## element.user_for_revision = current_user
|
|
138
|
-
|
|
139
|
+
element.save!
|
|
139
140
|
element
|
|
140
141
|
rescue StandardError => e
|
|
141
142
|
Labimotion.log_exception(e, current_user)
|
|
@@ -194,7 +195,7 @@ module Labimotion
|
|
|
194
195
|
def element_revisions(params)
|
|
195
196
|
klass = Labimotion::Element.find(params[:id])
|
|
196
197
|
list = klass.elements_revisions unless klass.nil?
|
|
197
|
-
list&.
|
|
198
|
+
list&.order(created_at: :desc)&.limit(10)
|
|
198
199
|
rescue StandardError => e
|
|
199
200
|
Labimotion.log_exception(e, current_user)
|
|
200
201
|
raise e
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"layers": {
|
|
3
|
+
"std_general": {
|
|
4
|
+
"wf": false,
|
|
5
|
+
"key": "std_general",
|
|
6
|
+
"std": true,
|
|
7
|
+
"cols": 4,
|
|
8
|
+
"color": "default",
|
|
9
|
+
"label": "Standard General description",
|
|
10
|
+
"style": "panel_generic_heading",
|
|
11
|
+
"fields": [
|
|
12
|
+
{
|
|
13
|
+
"type": "text",
|
|
14
|
+
"field": "title",
|
|
15
|
+
"label": "title",
|
|
16
|
+
"default": "",
|
|
17
|
+
"ontology": {
|
|
18
|
+
"id": "afo:class:http://purl.allotrope.org/ontologies/result#AFR_0001080",
|
|
19
|
+
"iri": "http://purl.allotrope.org/ontologies/result#AFR_0001080",
|
|
20
|
+
"type": "class",
|
|
21
|
+
"label": "title",
|
|
22
|
+
"obo_id": "AFR:0001080",
|
|
23
|
+
"short_form": "AFR_0001080",
|
|
24
|
+
"description": [
|
|
25
|
+
"A title is a prefix or suffix added to a personal name. A title can be a title of honor, that is a title bestowed as an award, a honorary title (academic), that is a recognition of contributions by a non-employee or employee, a hereditary title, that is a title that remains in a family or a job title, that is a designation of a person's position in an organization. [Wikipedia]"
|
|
26
|
+
],
|
|
27
|
+
"ontology_name": "afo",
|
|
28
|
+
"ontology_prefix": "AFO"
|
|
29
|
+
},
|
|
30
|
+
"position": 1,
|
|
31
|
+
"required": false,
|
|
32
|
+
"sub_fields": [],
|
|
33
|
+
"text_sub_fields": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "text",
|
|
37
|
+
"field": "data_type",
|
|
38
|
+
"label": "Type of the data ",
|
|
39
|
+
"default": "",
|
|
40
|
+
"readonly": true,
|
|
41
|
+
"position": 2,
|
|
42
|
+
"required": false,
|
|
43
|
+
"sub_fields": [],
|
|
44
|
+
"description": "Ontologies!!!! type of entity",
|
|
45
|
+
"placeholder": "e.g. sample or reaction analysis",
|
|
46
|
+
"text_sub_fields": []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "text",
|
|
50
|
+
"field": "date",
|
|
51
|
+
"label": "date",
|
|
52
|
+
"default": "",
|
|
53
|
+
"position": 3,
|
|
54
|
+
"required": false,
|
|
55
|
+
"sub_fields": [],
|
|
56
|
+
"text_sub_fields": []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "text",
|
|
60
|
+
"field": "time",
|
|
61
|
+
"label": "starting time",
|
|
62
|
+
"default": "",
|
|
63
|
+
"position": 4,
|
|
64
|
+
"required": false,
|
|
65
|
+
"sub_fields": [],
|
|
66
|
+
"text_sub_fields": []
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "text",
|
|
70
|
+
"field": "contributor",
|
|
71
|
+
"label": "contributor",
|
|
72
|
+
"default": "",
|
|
73
|
+
"position": 5,
|
|
74
|
+
"required": false,
|
|
75
|
+
"sub_fields": [],
|
|
76
|
+
"description": "",
|
|
77
|
+
"text_sub_fields": []
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "text",
|
|
81
|
+
"field": "creator",
|
|
82
|
+
"label": "creator",
|
|
83
|
+
"default": "",
|
|
84
|
+
"position": 6,
|
|
85
|
+
"required": false,
|
|
86
|
+
"sub_fields": [],
|
|
87
|
+
"description": "the person who upload the analysis",
|
|
88
|
+
"text_sub_fields": []
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "text",
|
|
92
|
+
"field": "operator",
|
|
93
|
+
"label": "operator",
|
|
94
|
+
"default": "",
|
|
95
|
+
"position": 7,
|
|
96
|
+
"required": false,
|
|
97
|
+
"sub_fields": [],
|
|
98
|
+
"text_sub_fields": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "text",
|
|
102
|
+
"field": "comments",
|
|
103
|
+
"label": "comments",
|
|
104
|
+
"default": "",
|
|
105
|
+
"position": 8,
|
|
106
|
+
"required": false,
|
|
107
|
+
"sub_fields": [],
|
|
108
|
+
"text_sub_fields": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"opid": 8,
|
|
112
|
+
"type": "text",
|
|
113
|
+
"field": "Producer",
|
|
114
|
+
"label": "Producer of the sample",
|
|
115
|
+
"is_voc": true,
|
|
116
|
+
"source": "Segment",
|
|
117
|
+
"default": "",
|
|
118
|
+
"field_id": "Producer",
|
|
119
|
+
"layer_id": "bsi",
|
|
120
|
+
"ontology": {
|
|
121
|
+
"id": "schema:property:https://schema.org/producer",
|
|
122
|
+
"iri": "https://schema.org/producer",
|
|
123
|
+
"type": "property",
|
|
124
|
+
"label": "producer",
|
|
125
|
+
"obo_id": "schema:producer",
|
|
126
|
+
"short_form": "schema_producer",
|
|
127
|
+
"description": [
|
|
128
|
+
"The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.)."
|
|
129
|
+
],
|
|
130
|
+
"ontology_name": "schema",
|
|
131
|
+
"ontology_prefix": "schema"
|
|
132
|
+
},
|
|
133
|
+
"position": 9,
|
|
134
|
+
"source_id": "dce363d5-56d0-4324-9914-0476be999016",
|
|
135
|
+
"identifier": "357b7cd3-ca47-49e0-be47-154d907c2cf5",
|
|
136
|
+
"sub_fields": [],
|
|
137
|
+
"text_sub_fields": []
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"position": -2,
|
|
141
|
+
"condition": "",
|
|
142
|
+
"wf_position": 0
|
|
143
|
+
},
|
|
144
|
+
"std_sample_details": {
|
|
145
|
+
"wf": false,
|
|
146
|
+
"key": "std_sample_details",
|
|
147
|
+
"cols": 3,
|
|
148
|
+
"std": true,
|
|
149
|
+
"color": "none",
|
|
150
|
+
"label": "Standard Sample details",
|
|
151
|
+
"style": "panel_generic_heading",
|
|
152
|
+
"fields": [
|
|
153
|
+
{
|
|
154
|
+
"type": "text",
|
|
155
|
+
"field": "label",
|
|
156
|
+
"label": "label",
|
|
157
|
+
"default": "",
|
|
158
|
+
"position": 1,
|
|
159
|
+
"required": false,
|
|
160
|
+
"sub_fields": [],
|
|
161
|
+
"text_sub_fields": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "text",
|
|
165
|
+
"field": "id",
|
|
166
|
+
"label": "id",
|
|
167
|
+
"default": "",
|
|
168
|
+
"position": 2,
|
|
169
|
+
"required": false,
|
|
170
|
+
"sub_fields": [],
|
|
171
|
+
"text_sub_fields": []
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "text",
|
|
175
|
+
"field": "amount",
|
|
176
|
+
"label": "amount",
|
|
177
|
+
"default": "",
|
|
178
|
+
"position": 3,
|
|
179
|
+
"required": false,
|
|
180
|
+
"sub_fields": [],
|
|
181
|
+
"text_sub_fields": []
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "text",
|
|
185
|
+
"field": "volume",
|
|
186
|
+
"label": "volume",
|
|
187
|
+
"default": "",
|
|
188
|
+
"position": 4,
|
|
189
|
+
"required": false,
|
|
190
|
+
"sub_fields": [],
|
|
191
|
+
"text_sub_fields": []
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "text",
|
|
195
|
+
"field": "size",
|
|
196
|
+
"label": "size",
|
|
197
|
+
"default": "",
|
|
198
|
+
"position": 5,
|
|
199
|
+
"required": false,
|
|
200
|
+
"sub_fields": [],
|
|
201
|
+
"text_sub_fields": []
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"position": -1,
|
|
205
|
+
"timeRecord": "",
|
|
206
|
+
"wf_position": 0
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"version": "0.1",
|
|
210
|
+
"select_options": {
|
|
211
|
+
}
|
|
212
|
+
}
|
data/lib/labimotion/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: labimotion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.0.
|
|
4
|
+
version: 2.1.0.rc3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chia-Lin Lin
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2025-
|
|
12
|
+
date: 2025-10-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -76,6 +76,7 @@ files:
|
|
|
76
76
|
- lib/labimotion/helpers/vocabulary_helpers.rb
|
|
77
77
|
- lib/labimotion/libs/attachment_handler.rb
|
|
78
78
|
- lib/labimotion/libs/converter.rb
|
|
79
|
+
- lib/labimotion/libs/data/layer/StdDataset.json
|
|
79
80
|
- lib/labimotion/libs/data/mapper/Chemwiki.json
|
|
80
81
|
- lib/labimotion/libs/data/mapper/Source.json
|
|
81
82
|
- lib/labimotion/libs/data/vocab/Standard.json
|