eco-helpers 2.0.23 → 2.0.24
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 +10 -4
- data/lib/eco/api/session/batch/job.rb +7 -1
- data/lib/eco/cli/config/default/options.rb +11 -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: a2d943cd8ff8df507a2285548d7bf0c8fffa4009df45de1c26f38e4c966c747f
|
4
|
+
data.tar.gz: 14cdb53085deec51b406000048aa00199478ef9458290061cb47d324957ec1f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8563f5eaac3f8b650b62138fd31252d990467be498f9620bf7276a430ab8470acf1f2a8ab7b3e6ebcb9accedc1af94ac7168e6acdf3eb94de516259069a49c80
|
7
|
+
data.tar.gz: 881d6742b555d4b3cf42addef76470b35764684cbca0f903252ae5a39f503dc6a89d9bd7f7f774c587c0b6a23a6f898274af227baf14090d40ae30a16144eecc
|
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
|
-
## [2.0.
|
4
|
+
## [2.0.24] - 2021-06-xx
|
5
|
+
|
6
|
+
### Added
|
7
|
+
- `Eco::API::Session::Batch::Job` made **native** `-include-excluded`
|
8
|
+
* also added new option `-include-only-excluded` to be able to only target people HRIS excluded
|
9
|
+
### Changed
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
|
13
|
+
## [2.0.23] - 2021-06-22
|
5
14
|
|
6
15
|
### Added
|
7
16
|
- `Eco::API::Session::Batch::Job` **new** option (`-save-requests`) to save requests even if in `dry-run` (`-simulate`)
|
@@ -9,9 +18,6 @@ All notable changes to this project will be documented in this file.
|
|
9
18
|
- `Eco::API::Session::Batch::Job` new people won't create updates unless they have either details or account
|
10
19
|
* because that entry is not supposed to be created unless has account or details
|
11
20
|
|
12
|
-
### Fixed
|
13
|
-
|
14
|
-
|
15
21
|
## [2.0.22] - 2021-06-18
|
16
22
|
|
17
23
|
### Added
|
@@ -253,7 +253,13 @@ module Eco
|
|
253
253
|
def api_included(full_queue)
|
254
254
|
return full_queue if type == :create
|
255
255
|
return full_queue unless excluded = session.config.people.api_excluded
|
256
|
-
|
256
|
+
if options.dig(:include, :only_excluded)
|
257
|
+
full_queue.select {|entry| excluded.call(entry, session, options, self)}
|
258
|
+
elsif options.dig(:include, :excluded)
|
259
|
+
full_queue
|
260
|
+
else
|
261
|
+
full_queue.select {|entry| !excluded.call(entry, session, options, self)}
|
262
|
+
end
|
257
263
|
end
|
258
264
|
|
259
265
|
# Applies the changes introduced by api policies
|
@@ -87,6 +87,17 @@ ASSETS.cli.config do |cnf|
|
|
87
87
|
session.config.dry_run!
|
88
88
|
end
|
89
89
|
|
90
|
+
desc = "(careful with this option) This will include everybody as part of the update (including those that are api excluded). "
|
91
|
+
desc += "Only launch with this option when only api excluded people are included in your update."
|
92
|
+
options_set.add("-include-excluded", desc) do |options|
|
93
|
+
options.deep_merge!(include: {excluded: true})
|
94
|
+
end
|
95
|
+
|
96
|
+
desc = "Includes in API updates ONLY people that evaluate true as people excluded from periodic upates."
|
97
|
+
options_set.add("-include-only-excluded", desc) do |options|
|
98
|
+
options.deep_merge!(include: {only_excluded: true})
|
99
|
+
end
|
100
|
+
|
90
101
|
desc = "Ignores threshold limitations on requests for this session (skip batch belt)"
|
91
102
|
options_set.add("-skip-batch-policy", desc) do |options|
|
92
103
|
options.deep_merge!(skip: {batch_policy: true})
|
data/lib/eco/version.rb
CHANGED