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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/lib/eco/api/common/session/base_session.rb +1 -0
  4. data/lib/eco/api/common/session/helpers/prompt_user.rb +3 -1
  5. data/lib/eco/api/common/session/helpers.rb +0 -9
  6. data/lib/eco/api/common/session/logger.rb +2 -0
  7. data/lib/eco/api/microcases/account_excluded.rb +2 -0
  8. data/lib/eco/api/microcases/append_usergroups.rb +4 -6
  9. data/lib/eco/api/microcases/core_excluded.rb +2 -1
  10. data/lib/eco/api/microcases/fix_default_group.rb +13 -14
  11. data/lib/eco/api/microcases/people_cache.rb +10 -3
  12. data/lib/eco/api/microcases/people_load.rb +21 -7
  13. data/lib/eco/api/microcases/people_refresh.rb +11 -3
  14. data/lib/eco/api/microcases/people_search.rb +24 -10
  15. data/lib/eco/api/microcases/person_update.rb +8 -4
  16. data/lib/eco/api/microcases/preserve_default_tag.rb +9 -9
  17. data/lib/eco/api/microcases/preserve_policy_groups.rb +14 -14
  18. data/lib/eco/api/microcases/refresh_default_tag.rb +11 -12
  19. data/lib/eco/api/microcases/s3upload_targets.rb +3 -2
  20. data/lib/eco/api/microcases/set_account.rb +6 -7
  21. data/lib/eco/api/microcases/strict_search.rb +0 -1
  22. data/lib/eco/api/microcases/take_email_from_account.rb +46 -27
  23. data/lib/eco/api/microcases/with_each.rb +15 -5
  24. data/lib/eco/api/microcases/with_each_leaver.rb +1 -1
  25. data/lib/eco/api/microcases/with_each_present.rb +6 -2
  26. data/lib/eco/api/microcases/with_each_starter.rb +7 -3
  27. data/lib/eco/api/microcases/with_each_subordinate.rb +0 -1
  28. data/lib/eco/api/microcases/with_supervisor.rb +0 -1
  29. data/lib/eco/api/microcases.rb +0 -2
  30. data/lib/eco/api/organization/login_providers.rb +23 -5
  31. data/lib/eco/api/session.rb +1 -1
  32. data/lib/eco/cli_default/input.rb +17 -14
  33. data/lib/eco/cli_default/options.rb +41 -23
  34. data/lib/eco/cli_default/people.rb +50 -12
  35. data/lib/eco/cli_default/people_filters.rb +1 -1
  36. data/lib/eco/cli_default/workflow.rb +4 -0
  37. data/lib/eco/data/files/helpers.rb +1 -0
  38. data/lib/eco/version.rb +1 -1
  39. 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)
@@ -28,6 +28,7 @@ module Eco
28
28
 
29
29
  content.scrub do |bytes|
30
30
  replacement = "<#{bytes.unpack1('H*')}>"
31
+
31
32
  if tolerance <= 0
32
33
  logger.error("There were more than 5 encoding errors in the file '#{file}'.")
33
34
  return content
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = '2.7.24'.freeze
2
+ VERSION = '2.7.25'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.24
4
+ version: 2.7.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura