eco-helpers 1.3.16 → 1.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/eco/api/session/batch/errors.rb +9 -7
- data/lib/eco/api/usecases/default_cases/hris_case.rb +2 -2
- 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: e957c3c78a92c3cb18bed8c512ed087dd21551799a3dfa54e9cd3821045826ee
|
4
|
+
data.tar.gz: 853c05d5dd2191611b74b7e0b64037d2ad223721a8bff9e615560d13a057c2cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f83c3d8bef201c208c18116544d125633e3633abc33c519d841b766bb49777c562676591b3fe5e5037d805f43ece0233ab0af0ae8236a64a0823a55e88c9fd
|
7
|
+
data.tar.gz: 0cc7d6d8d7e3fb6e58a04e55e0f6dcfe84916c41b2d067828698e92255eb7004503be731ff46ba8d6d30ba6e9dcd1d9b6faf3df2ac6c80cf5ccf6fb48abb23f6
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [1.3.
|
4
|
+
## [1.3.17] - 2020-07-xx
|
5
|
+
|
6
|
+
### Added
|
7
|
+
### Changed
|
8
|
+
- the `hris` case should not only include as `leavers` those that have account, but anyone that leaves
|
9
|
+
* as we could have active people with no account
|
10
|
+
### Fixed
|
11
|
+
- `Eco::API::Session::Batch::Errors#errors`: fix error for empty `body` on response
|
12
|
+
|
13
|
+
## [1.3.16] - 2020-06-26
|
5
14
|
|
6
15
|
### Added
|
7
16
|
- `Eco::API::Common::People::Entries`, `#entry` & `#find` should allow for `strict` search (added parameter)
|
@@ -69,13 +69,15 @@ module Eco
|
|
69
69
|
|
70
70
|
def errors
|
71
71
|
entries.each_with_object([]) do |entry, arr|
|
72
|
-
if
|
73
|
-
errs
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
72
|
+
if body = status[entry].body
|
73
|
+
if errs = body["errors"]
|
74
|
+
errs.each do |msg|
|
75
|
+
arr.push({
|
76
|
+
type: klass = Eco::API::Error.get_type(msg),
|
77
|
+
err: klass.new(err_msg: msg, entry: entry, session: session),
|
78
|
+
entry: entry
|
79
|
+
})
|
80
|
+
end
|
79
81
|
end
|
80
82
|
end
|
81
83
|
end
|
@@ -14,11 +14,11 @@ module Eco
|
|
14
14
|
strict_search = session.config.people.strict_search? && (!options[:search]&.key?(:strict) || options.dig(:search, :strict))
|
15
15
|
pgs = session.policy_groups
|
16
16
|
|
17
|
-
people.
|
17
|
+
people.each_with_index do |person, i|
|
18
18
|
if !entries.find(person, strict: strict_search)
|
19
19
|
leavers.add(person) do |person|
|
20
20
|
person.supervisor_id = nil
|
21
|
-
person.account = nil
|
21
|
+
person.account = nil if person.account
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/eco/version.rb
CHANGED