etna 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb19650be05ef97433ec00556981388436eb54ee48844055218f3ec290b10f3f
|
4
|
+
data.tar.gz: fbbee21325ddd316b4a742bc0cd143cba33c4bce635ad767720ed2d330da5446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5548756441715e1944ced74613ae21f328910c3dcd982d638918f0df432d0ca8ee24b4ac62d7f86b17b3325483635e7e2b2ae750f93b82ef9a5629d925de01
|
7
|
+
data.tar.gz: ce866396a93210565bfc6bd9d5ff1acd69833c3bb9ff55a845e4fbdaad3769b65b0402ee3dc4c0ea937aacb7eac1432b9460ff5612c4344317bd4fcffaec4771
|
@@ -519,6 +519,18 @@ module Etna
|
|
519
519
|
@raw['desc'] = val
|
520
520
|
end
|
521
521
|
|
522
|
+
# description and description= are needed
|
523
|
+
# to make UpdateAttribute actions
|
524
|
+
# work in the model_synchronization_workflow for
|
525
|
+
# desc.
|
526
|
+
def description
|
527
|
+
raw['desc']
|
528
|
+
end
|
529
|
+
|
530
|
+
def description=(val)
|
531
|
+
@raw['desc'] = val
|
532
|
+
end
|
533
|
+
|
522
534
|
def display_name
|
523
535
|
raw['display_name']
|
524
536
|
end
|
@@ -589,7 +601,7 @@ module Etna
|
|
589
601
|
COPYABLE_ATTRIBUTE_ATTRIBUTES = [
|
590
602
|
:attribute_name, :attribute_type, :desc, :display_name, :format_hint,
|
591
603
|
:hidden, :link_model_name, :read_only, :attribute_group, :unique, :validation,
|
592
|
-
:restricted
|
604
|
+
:restricted, :description
|
593
605
|
]
|
594
606
|
|
595
607
|
EDITABLE_ATTRIBUTE_ATTRIBUTES = UpdateAttributeAction.members & COPYABLE_ATTRIBUTE_ATTRIBUTES
|
@@ -226,7 +226,7 @@ module Etna
|
|
226
226
|
if renames && (attribute_renames = renames[model_name]) && (new_name = attribute_renames[attribute_name])
|
227
227
|
new_name = target_attribute_of_source(model_name, new_name)
|
228
228
|
|
229
|
-
unless target_model.template.attributes.include?(new_name)
|
229
|
+
unless target_model.template.attributes.attribute_keys.include?(new_name)
|
230
230
|
if target_original_attribute
|
231
231
|
rename = RenameAttributeAction.new(model_name: target_model_name, attribute_name: target_attribute_name, new_attribute_name: new_name)
|
232
232
|
queue_update(rename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saurabh Asthana
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|