lib/eco/cli/config/default/usecases.rb in eco-helpers-2.0.25 vs lib/eco/cli/config/default/usecases.rb in eco-helpers-2.0.26
- old
+ new
@@ -188,13 +188,22 @@
desc = "Re-freshes the default_tag of users"
cases.add("-set-default-tag", :transform, desc, case_name: "set-default-tag")
desc = "Creates people with with details and account"
+ as1 = "During the run, if new people is created, they are included in the People object of the current session."
+ as1 << " This makes them available to find them (i.e. via 'external-id') before they exist"
cases.add("-create-from", :sync, desc, case_name: "create")
+ .add_option("-append-starters", as1) do |options|
+ options.deep_merge!(people: {append_created: true})
+ end
+
desc = "Creates people with only details"
cases.add("-create-details-from", :sync, desc, case_name: "create-details")
+ .add_option("-append-starters", as1) do |options|
+ options.deep_merge!(people: {append_created: true})
+ end
desc = "It just adds everybody to an update job without doing any change. If the org has policies, it will refresh"
cases.add("-refresh", :transform, desc, case_name: "refresh")
desc = "Updates details and core (including supervisor) to target people"
@@ -211,9 +220,16 @@
options.deep_merge!(include: {email: true})
end
desc = "Tries to find the input entries and update them. It creates them if not found"
cases.add("-upsert-from", :sync, desc, case_name: "upsert")
+ .add_option("-append-starters", as1) do |options|
+ options.deep_merge!(people: {append_created: true})
+ end
+
desc = "It does like -upsert-from and additionally removes account and supervisor of those in people that are not in the entries (leavers)"
cases.add("-hris-from", :sync, desc, case_name: "hris")
+ .add_option("-append-starters", as1) do |options|
+ options.deep_merge!(people: {append_created: true})
+ end
end
end