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: 4f49ceec7a0716f4265f77b72e06daa06b66b3b960469842249c2a8e9ce0b847
4
- data.tar.gz: a670f98ce7d34bd6bf42e2d938341c52c892e4cc2e6104b4f3fc7b42bcdd990d
3
+ metadata.gz: 2e1a4de8ccbd93ffde8cb5669e2990c7b45d173d3c4a5d9cb8e82e8b516c1e6d
4
+ data.tar.gz: 000c5decbcbbc3620a22febb9682e8d996dc2239fdbe857072c62b5aa7482aae
5
5
  SHA512:
6
- metadata.gz: ccccdc391fdf06e5939c406f2d04e6eafa0341d6d0747c60c08967bba1b08f60402c6e8f3058593c1a761536ce411609c3d911f34842a8b43537e832703f4a3f
7
- data.tar.gz: 3c786c864e851a2afb874a196a4f1f93ea84530951a34714663d4e44f26ffe2422ed9485da071ddb00eca72a148c2f32bc5b6d4ce5e75340890fc48b021755d3
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.12] - 2024-09-xx
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.11] - 2024-09-xx
13
+ ## [3.0.12] - 2024-09-06
14
14
 
15
- ### Added
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| to_classification(val)}.compact
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = '3.0.11'.freeze
2
+ VERSION = '3.0.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura