eco-helpers 1.5.10 → 1.5.11
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/CHANGELOG.md +11 -1
- data/lib/eco/api/microcases/set_core_with_supervisor.rb +5 -3
- data/lib/eco/api/organization/tag_tree.rb +7 -0
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b9af4f974524b36ddd0fad5316d37281f0a9a2e7dd2f03d2f5febbaef957313
|
4
|
+
data.tar.gz: '003906cbfc9389e184b238001997ad1f444355cfbccd9d609f9197445ad3a369'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f3b5aa580a10398ebcbf99203f2e6fd4951a20d45d2edd8fd9fff2c0e894ed18f8a54d0537fef4e281465fd7ef7326454df3647bf80051348e6c56d3215866e
|
7
|
+
data.tar.gz: b53b697f1b07ad41bac8550150d3ab7d9cfe6eb842507e5cc77d8bd3a2dc4a8568621f1f2ba849d44440a42c646c7f844336f43de0db058b798c5cdebd643764
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [1.5.
|
4
|
+
## [1.5.11] - 2021-01-xx
|
5
|
+
|
6
|
+
### Added
|
7
|
+
- `Eco::API::Organization::TagTree#subtag?` to check if the tag is in any subtree.
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
- `Eco::API::MicroCases#set_supervisor` shouldn't set it if the entry does not have it.
|
13
|
+
|
14
|
+
## [1.5.10] - 2021-01-19
|
5
15
|
|
6
16
|
### Added
|
7
17
|
### Changed
|
@@ -11,9 +11,11 @@ module Eco
|
|
11
11
|
def set_core_with_supervisor(entry, person, people, supers_job, options)
|
12
12
|
unless options.dig(:exclude, :core) && !person.new?
|
13
13
|
micro.set_core(entry, person, options)
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
if entry.supervisor_id?
|
15
|
+
micro.set_supervisor(entry.supervisor_id, person, people, options) do |unkown_id|
|
16
|
+
# delay setting supervisor if does not exit
|
17
|
+
supers_job.add(person) {|person| person.supervisor_id = unkown_id}
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -68,6 +68,13 @@ module Eco
|
|
68
68
|
tags - tags(depth: depth)
|
69
69
|
end
|
70
70
|
|
71
|
+
# Verifies if a tag exists in the subtree(s).
|
72
|
+
# @param key [String] tag to verify.
|
73
|
+
# @return [Boolean]
|
74
|
+
def subtag?(key)
|
75
|
+
subtags.include?(key&.upcase)
|
76
|
+
end
|
77
|
+
|
71
78
|
# Verifies if a tag exists in the tree.
|
72
79
|
# @param key [String] tag to verify.
|
73
80
|
# @return [Boolean]
|
data/lib/eco/version.rb
CHANGED