eco-helpers 3.0.11 → 3.0.12
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: 2e1a4de8ccbd93ffde8cb5669e2990c7b45d173d3c4a5d9cb8e82e8b516c1e6d
|
4
|
+
data.tar.gz: 000c5decbcbbc3620a22febb9682e8d996dc2239fdbe857072c62b5aa7482aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645a4b17b0f3212e5d65140f90079f0c0cf905bf6fee5db22c4e15f62b5f2b98eeaef6b47645b63df9e4826b66147dc52cbbae687863df1d0917de39e98146b5
|
7
|
+
data.tar.gz: 58a53215c91e6b29cc29292d2b6858ac87a41c1f674f4111d0a90d73777d752f155e9d4721176d3805ad29a43c111737cb0bda3bdacc324e4651c75d9c34cfb6
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
## [3.0.
|
5
|
+
## [3.0.13] - 2024-09-xx
|
6
6
|
|
7
7
|
### Added
|
8
8
|
|
@@ -10,17 +10,23 @@ All notable changes to this project will be documented in this file.
|
|
10
10
|
|
11
11
|
### Fixed
|
12
12
|
|
13
|
-
## [3.0.
|
13
|
+
## [3.0.12] - 2024-09-06
|
14
14
|
|
15
|
-
###
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
- Enable multiple classifications per location node on updates
|
18
|
+
- `Eco::API::UseCases::GraphQL::Helpers::Location::Base::ClassificationsParser`
|
19
|
+
- `#to_classification_ids` split on `|`
|
20
|
+
- `Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diff::AsUpdate`
|
21
|
+
- `#diff_hash`
|
22
|
+
|
23
|
+
## [3.0.11] - 2024-09-06
|
16
24
|
|
17
25
|
### Changed
|
18
26
|
|
19
27
|
- Prevent double-up of notifications
|
20
28
|
- Prevent double log of errors
|
21
29
|
|
22
|
-
### Fixed
|
23
|
-
|
24
30
|
## [3.0.10] - 2024-09-05
|
25
31
|
|
26
32
|
### Fixed
|
@@ -22,7 +22,8 @@ module Eco::API::UseCases::GraphQL::Helpers::Location
|
|
22
22
|
|
23
23
|
def to_classification_ids(values)
|
24
24
|
values = [values].flatten unless values.is_a?(Array)
|
25
|
-
values.compact.map {|val|
|
25
|
+
values = values.compact.map {|val| val.split('|')}.flatten
|
26
|
+
values.compact.map {|val| to_classification(val)}.compact.uniq
|
26
27
|
end
|
27
28
|
|
28
29
|
# @note
|
@@ -15,6 +15,7 @@ class Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diff
|
|
15
15
|
if h.key?('classifications')
|
16
16
|
class_ids = h.delete('classifications')
|
17
17
|
class_ids = [class_ids].flatten.compact unless class_ids.is_a?(Array)
|
18
|
+
class_ids = class_ids.compact.map {|val| val.split('|')}.flatten.uniq
|
18
19
|
h['classificationIds'] = class_ids
|
19
20
|
end
|
20
21
|
|
data/lib/eco/version.rb
CHANGED