labimotion 2.0.0.rc6 → 2.0.0.rc7
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 +4 -4
- data/lib/labimotion/apis/vocabulary_api.rb +1 -1
- data/lib/labimotion/entities/vocabulary_entity.rb +3 -2
- data/lib/labimotion/helpers/element_helpers.rb +2 -1
- data/lib/labimotion/libs/data/vocab/System.json +1 -1
- data/lib/labimotion/models/concerns/generic_klass_revisions.rb +1 -0
- data/lib/labimotion/models/concerns/generic_revisions.rb +3 -0
- data/lib/labimotion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4939f188635fe8994339ee41af70efde1ff991c04fdcf3e5b7655502679db2d6
|
4
|
+
data.tar.gz: de30c9da40f6f8baf061212ae8b13cd8c21bacf4d353a04b27668854b02f464a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2985f972026f5ab556ab37fd8dd9226b0728369d8cdc0f8fa5efbb4b35b2cf48e2961e114ef0793fc7c12e1d7cad46b5025ec9f8128ac8e839c7c9e291f1aff8
|
7
|
+
data.tar.gz: d1f5d637746cca7208a50c4a928e512026abc55fd8242252ac87d4e43b6dc72654bc82e5698ecc9f529317f0b3c049a2a5a07f781237e7da0bbebc6374a88cd9
|
@@ -31,7 +31,7 @@ module Labimotion
|
|
31
31
|
source_id: params[:source_id],
|
32
32
|
layer_id: params[:layer_id],
|
33
33
|
field_id: params[:name],
|
34
|
-
identifier:
|
34
|
+
identifier: SecureRandom.uuid,
|
35
35
|
created_by: current_user.id,
|
36
36
|
properties: declared(params, include_missing: false),
|
37
37
|
}
|
@@ -11,9 +11,10 @@ module Labimotion
|
|
11
11
|
|
12
12
|
case voc['source']
|
13
13
|
when Labimotion::Prop::ELEMENT
|
14
|
-
|
14
|
+
voc['source_name'] = ElementKlass.find_by(identifier: voc['source_id'])&.label
|
15
|
+
# if voc['identifier'] == 'element.name'
|
15
16
|
# voc['source_name'] = ElementKlass.find_by(identifier: voc['source_id'])&.name
|
16
|
-
end
|
17
|
+
# end
|
17
18
|
when Labimotion::Prop::SEGMENT
|
18
19
|
voc['source_name'] = SegmentKlass.find_by(identifier: voc['source_id'])&.label
|
19
20
|
when Labimotion::Prop::DATASET
|
@@ -127,11 +127,12 @@ module Labimotion
|
|
127
127
|
attributes['properties']['uuid'] = uuid
|
128
128
|
attributes['uuid'] = uuid
|
129
129
|
attributes['klass_uuid'] = properties['klass_uuid']
|
130
|
-
element.
|
130
|
+
element.update_columns(attributes)
|
131
131
|
end
|
132
132
|
element.save_segments(segments: params[:segments], current_user_id: current_user.id)
|
133
133
|
element.reload
|
134
134
|
element.properties = update_vocabularies(element.properties, current_user, element)
|
135
|
+
## element.user_for_revision = current_user
|
135
136
|
element.save!
|
136
137
|
element
|
137
138
|
rescue StandardError => e
|
@@ -8,6 +8,8 @@ module Labimotion
|
|
8
8
|
after_create :create_vault
|
9
9
|
after_update :save_to_vault
|
10
10
|
before_destroy :delete_attachments
|
11
|
+
|
12
|
+
## attr_accessor :user_for_revision
|
11
13
|
end
|
12
14
|
|
13
15
|
def create_vault
|
@@ -19,6 +21,7 @@ module Labimotion
|
|
19
21
|
uuid: uuid,
|
20
22
|
klass_uuid: klass_uuid,
|
21
23
|
properties: properties,
|
24
|
+
## created_by: user_for_revision&.id,
|
22
25
|
properties_release: properties_release
|
23
26
|
}
|
24
27
|
attributes["#{Labimotion::Utils.element_name_dc(self.class.name)}_id"] = id
|
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.0.0.
|
4
|
+
version: 2.0.0.rc7
|
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-02-
|
12
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|