eco-helpers 1.3.14 → 1.3.15
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 +7 -0
- data/lib/eco/api/usecases/default_cases/to_csv_detailed_case.rb +12 -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: 1527493b64563ca009c0338bc5e3b5311371a4c59947526ad60fa453d577abfd
|
4
|
+
data.tar.gz: cabc02e6a45958ff8cfa46fc7ff76e451074d492f42a3091f28e6633c131b64b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8eaa3f1a56daaee787c26dd5c2681aea73e689fa55636c946a46441e8b894adb63922584d69f292176ffe35f05da3878dd0a410e0fd3bbf0d906937bca774b
|
7
|
+
data.tar.gz: 345b6faa4aa18aaf0db1930eddcf45bf228a1ed2f6246efe7f839c86f8af396d81513209fa2a6e04e36734da28842b6b193d2269d7aee5be1b2c7be23e120eaf
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [1.3.15] - 2020-06-11
|
5
|
+
|
6
|
+
### Added
|
7
|
+
- default usecase to export to `csv` (`-detailed`) now includes `"Supervisor Name"` column
|
8
|
+
### Changed
|
9
|
+
### Fixed
|
10
|
+
|
4
11
|
## [1.3.14] - 2020-06-10
|
5
12
|
|
6
13
|
### Added
|
@@ -24,21 +24,31 @@ module Eco
|
|
24
24
|
CSV.open(file, "w") do |csv|
|
25
25
|
deps = {"supervisor_id" => {people: people}}
|
26
26
|
header = session.new_entry(people.first, dependencies: deps).to_hash.keys
|
27
|
+
header += ["Subordinates"]
|
28
|
+
header += ["Supervisor Name"]
|
27
29
|
header += abilities
|
28
30
|
header += ["Login Methods"] if login_providers.any_optional?
|
29
|
-
header += ["Subordinates"]
|
30
31
|
header += ["Landing Page"]
|
31
32
|
|
32
33
|
csv << header
|
33
34
|
people.each do |person|
|
34
35
|
data = session.new_entry(person, dependencies: deps).to_hash.values
|
36
|
+
|
37
|
+
data.push(person.subordinates)
|
38
|
+
super_id = person.supervisor_id
|
39
|
+
if supervisor = people.person(id: super_id, external_id: super_id)
|
40
|
+
data.push(supervisor.name)
|
41
|
+
else
|
42
|
+
data.push("")
|
43
|
+
end
|
44
|
+
|
35
45
|
person_abilities = (person.account && person.account.permissions_custom) || {}
|
36
46
|
data += abilities.map {|key| person_abilities[key] || "no access"}
|
47
|
+
|
37
48
|
if login_providers.any_optional?
|
38
49
|
logins = (person.account && person.account.login_provider_ids) || []
|
39
50
|
data.push(login_providers.to_name(logins).join("|"))
|
40
51
|
end
|
41
|
-
data.push(person.subordinates)
|
42
52
|
|
43
53
|
if person.account && landing_id = person.account.landing_page_id
|
44
54
|
data.push(landing_id)
|
data/lib/eco/version.rb
CHANGED