eco-helpers 2.7.24 → 2.7.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/lib/eco/api/common/session/base_session.rb +1 -0
- data/lib/eco/api/common/session/helpers/prompt_user.rb +3 -1
- data/lib/eco/api/common/session/helpers.rb +0 -9
- data/lib/eco/api/common/session/logger.rb +2 -0
- data/lib/eco/api/microcases/account_excluded.rb +2 -0
- data/lib/eco/api/microcases/append_usergroups.rb +4 -6
- data/lib/eco/api/microcases/core_excluded.rb +2 -1
- data/lib/eco/api/microcases/fix_default_group.rb +13 -14
- data/lib/eco/api/microcases/people_cache.rb +10 -3
- data/lib/eco/api/microcases/people_load.rb +21 -7
- data/lib/eco/api/microcases/people_refresh.rb +11 -3
- data/lib/eco/api/microcases/people_search.rb +24 -10
- data/lib/eco/api/microcases/person_update.rb +8 -4
- data/lib/eco/api/microcases/preserve_default_tag.rb +9 -9
- data/lib/eco/api/microcases/preserve_policy_groups.rb +14 -14
- data/lib/eco/api/microcases/refresh_default_tag.rb +11 -12
- data/lib/eco/api/microcases/s3upload_targets.rb +3 -2
- data/lib/eco/api/microcases/set_account.rb +6 -7
- data/lib/eco/api/microcases/strict_search.rb +0 -1
- data/lib/eco/api/microcases/take_email_from_account.rb +46 -27
- data/lib/eco/api/microcases/with_each.rb +15 -5
- data/lib/eco/api/microcases/with_each_leaver.rb +1 -1
- data/lib/eco/api/microcases/with_each_present.rb +6 -2
- data/lib/eco/api/microcases/with_each_starter.rb +7 -3
- data/lib/eco/api/microcases/with_each_subordinate.rb +0 -1
- data/lib/eco/api/microcases/with_supervisor.rb +0 -1
- data/lib/eco/api/microcases.rb +0 -2
- data/lib/eco/api/organization/login_providers.rb +23 -5
- data/lib/eco/api/session.rb +1 -1
- data/lib/eco/cli_default/input.rb +17 -14
- data/lib/eco/cli_default/options.rb +41 -23
- data/lib/eco/cli_default/people.rb +50 -12
- data/lib/eco/cli_default/people_filters.rb +1 -1
- data/lib/eco/cli_default/workflow.rb +4 -0
- data/lib/eco/data/files/helpers.rb +1 -0
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
@@ -4,6 +4,7 @@ ASSETS.cli do |cli| # rubocop:disable Metrics/BlockLength
|
|
4
4
|
# default rescue
|
5
5
|
wf.rescue do |err, io|
|
6
6
|
next io if rescued
|
7
|
+
|
7
8
|
rescued = true
|
8
9
|
log(:debug) { err.patch_full_message }
|
9
10
|
wf.run(:close, io: io)
|
@@ -47,11 +48,13 @@ ASSETS.cli do |cli| # rubocop:disable Metrics/BlockLength
|
|
47
48
|
io.class.people_required?(usecase.type)
|
48
49
|
end
|
49
50
|
next if cases_with_people.empty? && !options.dig(:people, :get)
|
51
|
+
|
50
52
|
io.new(people: cli.config.people(io: io))
|
51
53
|
end
|
52
54
|
|
53
55
|
wf_peo.on(:filter) do |_wf_pf, io|
|
54
56
|
next unless people && !people.empty?
|
57
|
+
|
55
58
|
io.new(people: cli.config.people_filters.process(io: io))
|
56
59
|
end
|
57
60
|
end
|
@@ -61,6 +64,7 @@ ASSETS.cli do |cli| # rubocop:disable Metrics/BlockLength
|
|
61
64
|
# save partial entries -> should be native to session.workflow
|
62
65
|
get_people = options.dig(:people, :get)
|
63
66
|
partial_update = get_people && get_people[:type] == :partial
|
67
|
+
|
64
68
|
if !options[:dry_run] && partial_update
|
65
69
|
partial_file = session.config.people.partial_cache
|
66
70
|
session.file_manager.save_json(io.people, partial_file, :timestamp)
|
data/lib/eco/version.rb
CHANGED