eco-helpers 1.3.6 → 1.3.7
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/eco/api/common/people/person_entry.rb +7 -0
- data/lib/eco/api/common/version_patches/ecoportal_api/external_people.rb +2 -2
- data/lib/eco/api/usecases/default_cases/hris_case.rb +7 -6
- data/lib/eco/api/usecases/default_cases/update_case.rb +1 -1
- data/lib/eco/api/usecases/default_cases/upsert_case.rb +7 -5
- 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: 11b634b1d49337b52fe8d6a04876d706c14e44059410c77801d780a59c2d6276
|
4
|
+
data.tar.gz: 0fdc891abd28dd93339509f1b0d46a265f7754a1dfcc9eba9ff85ae8a1e6dd2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 536f7e54656a444baf0d83213691127f194dd91ce3f45ff91bea7fae441eb7a69b8af0cc41c4a45d8edd08159daf8fa423331bad0fd9f918e0d4b7612fbfd84d
|
7
|
+
data.tar.gz: c93ef5b4e097999eccaf356be4fea1332e215355e71edf272d6ccf340baa1ac2025df645654b374bc5bbbb26919ebe98a10ab261c0a60eb94dfea16f406364c3
|
@@ -106,7 +106,14 @@ module Eco
|
|
106
106
|
@internal_entry.key?("filter_tags")
|
107
107
|
end
|
108
108
|
|
109
|
+
def default_tag?
|
110
|
+
@internal_entry.key?("default_tag")
|
111
|
+
end
|
109
112
|
|
113
|
+
def default_tag
|
114
|
+
@internal_entry["default_tag"]
|
115
|
+
end
|
116
|
+
|
110
117
|
# Provides a reference of this person.
|
111
118
|
# @return [String] string summary of this person identity.
|
112
119
|
def to_s(options)
|
@@ -13,7 +13,7 @@ module Ecoportal
|
|
13
13
|
if status&.complete?
|
14
14
|
operation.process_response job_result(job_id, operation)
|
15
15
|
else
|
16
|
-
raise "Job `#{job_id}` not complete. Probably timeout after #{JOB_TIMEOUT +
|
16
|
+
raise "Job `#{job_id}` not complete. Probably timeout after #{JOB_TIMEOUT + 120} seconds. Current status: #{status}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -26,7 +26,7 @@ module Ecoportal
|
|
26
26
|
while true
|
27
27
|
status = job_status(job_id)
|
28
28
|
break status if status.complete?
|
29
|
-
break status if Time.now >= before + (JOB_TIMEOUT +
|
29
|
+
break status if Time.now >= before + (JOB_TIMEOUT + 120)
|
30
30
|
sleep(DELAY_STATUS_CHECK)
|
31
31
|
status
|
32
32
|
end
|
@@ -66,13 +66,14 @@ module Eco
|
|
66
66
|
|
67
67
|
person.account.permissions_custom = session.new_preset(person) unless !create && options.dig(:exclude, :abilities)
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
unless options.dig(:exclude, :filter_tags) || entry.default_tag?
|
70
|
+
if session.tagtree
|
71
|
+
person.account.default_tag = session.tagtree.default_tag(*person.filter_tags)
|
72
|
+
else
|
73
|
+
tags = person.filter_tags
|
74
|
+
person.account.default_tag = tags.first unless tags.length > 1
|
75
|
+
end
|
74
76
|
end
|
75
|
-
|
76
77
|
end
|
77
78
|
|
78
79
|
creation.add(person) if create
|
@@ -55,7 +55,7 @@ module Eco
|
|
55
55
|
|
56
56
|
person.account.permissions_custom = session.new_preset(person) unless options.dig(:exclude, :abilities)
|
57
57
|
|
58
|
-
unless options.dig(:exclude, :filter_tags)
|
58
|
+
unless options.dig(:exclude, :filter_tags) || entry.default_tag?
|
59
59
|
if session.tagtree
|
60
60
|
person.account.default_tag = session.tagtree.default_tag(*person.filter_tags)
|
61
61
|
else
|
@@ -59,11 +59,13 @@ module Eco
|
|
59
59
|
|
60
60
|
person.account.permissions_custom = session.new_preset(person) unless !create && options.dig(:exclude, :abilities)
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
62
|
+
unless options.dig(:exclude, :filter_tags) || entry.default_tag?
|
63
|
+
if session.tagtree
|
64
|
+
person.account.default_tag = session.tagtree.default_tag(*person.filter_tags)
|
65
|
+
else
|
66
|
+
tags = person.filter_tags
|
67
|
+
person.account.default_tag = tags.first unless tags.length > 1
|
68
|
+
end
|
67
69
|
end
|
68
70
|
|
69
71
|
end
|
data/lib/eco/version.rb
CHANGED