ecoportal-api 0.9.8 → 0.10.2
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/.markdownlint.json +4 -0
- data/.rubocop.yml +8 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +234 -174
- data/ecoportal-api.gemspec +26 -17
- data/lib/ecoportal/api/common/base_model.rb +36 -25
- data/lib/ecoportal/api/common/batch_operation.rb +22 -15
- data/lib/ecoportal/api/common/batch_response.rb +2 -5
- data/lib/ecoportal/api/common/client.rb +31 -18
- data/lib/ecoportal/api/common/doc_helpers.rb +1 -1
- data/lib/ecoportal/api/common/response.rb +1 -1
- data/lib/ecoportal/api/common/time_out.rb +26 -0
- data/lib/ecoportal/api/common/wrapped_response.rb +14 -19
- data/lib/ecoportal/api/common.rb +1 -0
- data/lib/ecoportal/api/internal/account.rb +11 -10
- data/lib/ecoportal/api/internal.rb +5 -5
- data/lib/ecoportal/api/logger.rb +11 -9
- data/lib/ecoportal/api/v1/job_status.rb +33 -0
- data/lib/ecoportal/api/v1/people.rb +80 -34
- data/lib/ecoportal/api/v1/person.rb +16 -13
- data/lib/ecoportal/api/v1/person_details.rb +10 -9
- data/lib/ecoportal/api/v1/person_schema.rb +1 -1
- data/lib/ecoportal/api/v1/person_schemas.rb +0 -2
- data/lib/ecoportal/api/v1/schema_field.rb +4 -5
- data/lib/ecoportal/api/v1/schema_field_value.rb +23 -24
- data/lib/ecoportal/api/v1.rb +5 -3
- data/lib/ecoportal/api/version.rb +1 -1
- metadata +63 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cc0547ca88715ad6b0f2d3bc7ed4661bab0f9259117ce28aa5d43aab0761d02
|
4
|
+
data.tar.gz: 1e109b427a0e71bd91edf1d4e9ce6e7cf9ac2df998662c97746df30b8e07998b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44eba3743e30beff3c04e71b1191900b8477d81af1371f1a5003cb6847384e384d535e51390e4f8db39e8aa81a0cbf7fc200a87ac18036c45e56530b72b09342
|
7
|
+
data.tar.gz: 1749045310b0748e8935027cd0d1b9d69e7a84c4534b27017bd1581848d579c6359e59dedfe19e3cbe451038e2a4c70fb82150a01ca4c9260eadde64bfac5a92
|
data/.markdownlint.json
ADDED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 3.2.2
|
3
3
|
Exclude:
|
4
4
|
- 'config/routes.rb'
|
5
5
|
NewCops: enable
|
@@ -30,6 +30,11 @@ Style/ConditionalAssignment:
|
|
30
30
|
Style/BlockDelimiters:
|
31
31
|
BracesRequiredMethods: ['log']
|
32
32
|
AllowedPatterns: ['proc', 'new']
|
33
|
+
Style/HashSyntax:
|
34
|
+
EnforcedShorthandSyntax: either
|
35
|
+
EnforcedStyle: no_mixed_keys
|
36
|
+
Style/ArgumentsForwarding:
|
37
|
+
UseAnonymousForwarding: false
|
33
38
|
Style/ClassAndModuleChildren:
|
34
39
|
Enabled: false
|
35
40
|
Style/FrozenStringLiteralComment:
|
@@ -93,3 +98,5 @@ Naming/MethodParameterName:
|
|
93
98
|
AllowedNames: ['x', 'y', 'i', 'j', 'id', 'io', 'to']
|
94
99
|
Naming/RescuedExceptionsVariableName:
|
95
100
|
Enabled: false
|
101
|
+
Naming/BlockForwarding:
|
102
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -1,304 +1,364 @@
|
|
1
1
|
# Change Log
|
2
|
+
|
2
3
|
All notable changes to this project will be documented in this file.
|
3
4
|
|
5
|
+
## [0.10.3] - 2024-09-xx
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
## [0.10.2] - 2024-09-27
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- `Ecoportal::API::Common::TimeOut` to calculate adaptive time outs.
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
|
21
|
+
- `Ecoportal::API::V1::Person#job`
|
22
|
+
- added **adaptative await**
|
23
|
+
- evaluate `true` to `complete?` if `progress` is that of total count.
|
24
|
+
|
25
|
+
## [0.10.1] - 2024-08-01
|
26
|
+
|
27
|
+
### Added
|
28
|
+
|
29
|
+
- `Ecoportal::API::V1::Person#brand_id`
|
30
|
+
- `Ecoportal::API::V1::Person#archived`
|
31
|
+
|
32
|
+
### Changed
|
33
|
+
|
34
|
+
- require `ruby 3`
|
35
|
+
|
4
36
|
## [0.9.8] - 2024-05-15
|
5
37
|
|
6
38
|
### Added
|
7
|
-
|
39
|
+
|
40
|
+
- `rubocop`
|
8
41
|
|
9
42
|
### Changed
|
10
|
-
|
11
|
-
|
43
|
+
|
44
|
+
- `Ecoportal::API::Common::Client#with_retry`
|
45
|
+
- Make resilient (**re-try**) to recent silent server errors where the body doesn't parse as JSON.
|
12
46
|
|
13
47
|
### Fixed
|
14
48
|
|
15
49
|
## [0.9.7] - 2024-02-03
|
16
50
|
|
17
|
-
### Added
|
18
51
|
### Changed
|
19
|
-
|
20
|
-
|
52
|
+
|
53
|
+
- `Ecoportal::API::V1::Person`
|
54
|
+
- **removed** property `subordinates`
|
21
55
|
|
22
56
|
## [0.9.6] - 2024-02-03
|
23
57
|
|
24
58
|
### Changed
|
25
|
-
|
59
|
+
|
60
|
+
- upgraded some gems
|
26
61
|
|
27
62
|
### Fixed
|
28
|
-
|
29
|
-
|
63
|
+
|
64
|
+
- Compatibility with `ruby 3`
|
65
|
+
- replaced `Proc.new` (with no block) by `block` in methods
|
30
66
|
|
31
67
|
## [0.9.5] - 2023-09-05
|
32
68
|
|
33
69
|
### Fixed
|
34
|
-
|
70
|
+
|
71
|
+
- `Ecoportal::API::V1::Person#as_update` missing parameter on `super` call.
|
35
72
|
|
36
73
|
## [0.9.4] - 2023-04-17
|
37
74
|
|
38
75
|
### Changed
|
39
|
-
|
40
|
-
|
76
|
+
|
77
|
+
- Softened max version of **gem** dependencies
|
78
|
+
- Upgraded required ruby version
|
41
79
|
|
42
80
|
### Fixed
|
43
|
-
|
44
|
-
|
81
|
+
|
82
|
+
- `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
|
83
|
+
- This was affecting `reset!` as `doc` was being changed
|
45
84
|
|
46
85
|
## [0.9.3] - 2023-03-16
|
47
86
|
|
48
87
|
### Added
|
49
|
-
|
88
|
+
|
89
|
+
- `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
|
50
90
|
|
51
91
|
## [0.9.1] - 2023-03-09
|
52
92
|
|
53
93
|
### Added
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
- `
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
94
|
+
|
95
|
+
- `Ecoportal::API::V1::Person#contractor_organization_id` support for contractor management
|
96
|
+
- `Ecoportal::API::Common::BaseModel` **added** `doc` helper methods:
|
97
|
+
- `replace_doc!` and `#replace_original_doc!`
|
98
|
+
- `Ecoportal::API::Internal::Person` **added** methods
|
99
|
+
- **breaking change**, they default to compare with `original_doc`, while they did it with `initial_doc`)
|
100
|
+
- `#new?` => to know if this person is being created now (it doesn't exist on **server side**).
|
101
|
+
- `#account_added?` => to know if this person is getting the account added.
|
102
|
+
- `#account_removed?` => to know if this person is getting their account removed.
|
103
|
+
- `Ecoportal::API::Common::Client#host` expose
|
104
|
+
- `Ecoportal::API::Internal::Permissions` added abilities
|
105
|
+
- `contractor_management`
|
65
106
|
|
66
107
|
### Fixed
|
67
|
-
|
108
|
+
|
109
|
+
- `Ecoportal::API::V1::PersonDetails.key?` should index first.
|
68
110
|
|
69
111
|
### Changed
|
70
|
-
|
112
|
+
|
113
|
+
- `Ecoportal::API::V1::Person::VALID_TAG_REGEX` allow dot `.` in tags.
|
71
114
|
|
72
115
|
## [0.8.5] - 2022-02-28
|
73
116
|
|
74
117
|
### Added
|
75
|
-
|
76
|
-
|
77
|
-
|
118
|
+
|
119
|
+
- `Ecoportal::API::V1::PersonDetails#[]` to raise a specific error type to allow handling
|
120
|
+
- `Ecoportal::API::V1::PersonDetails.key?` to allow to check if a field exists
|
121
|
+
- `Ecoportal::API::Internal::Account#force_send_invites` support for back-end new method
|
78
122
|
|
79
123
|
### Fixed
|
80
|
-
|
81
|
-
|
124
|
+
|
125
|
+
- `Ecoportal::API::V1::People#get` fixed typo
|
126
|
+
- `Ecoportal::API::Common::BaseModel` `#original_doc` and `#initial_doc` maybe empty for the parent object
|
82
127
|
|
83
128
|
### Changed
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
129
|
+
|
130
|
+
- `Ecoportal::API::V1::People#each` limited the `GET` retries to `5`
|
131
|
+
- `Ecoportal::API::Internal::Account#default_tag=`
|
132
|
+
- Controls input type to be `String` or `nil`
|
133
|
+
- Inherent `upcase`
|
88
134
|
|
89
135
|
## [0.8.4] - 2021-11-05
|
90
136
|
|
91
137
|
### Added
|
92
|
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
138
|
+
|
139
|
+
- `Ecoportal::API::Internal::Permissions` added abilities
|
140
|
+
- `visitor_management`, `cross_register_reporting` and `broadcast_notifications`
|
141
|
+
- Some yardocs too
|
142
|
+
- Some callbacks are done in a non-obvious way and the returned object type was not documented
|
143
|
+
- For this reason, some yardocs have been added to some of the parts that have been worked on.
|
97
144
|
|
98
145
|
### Fixed
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
|
106
|
-
|
146
|
+
|
147
|
+
- `Ecoportal::API::V1::People#create_job`
|
148
|
+
- **Removed** call to `BatchOperation#process_response`
|
149
|
+
- The method was is already called by `job_result`
|
150
|
+
- As a consequence there was a double up of `callbacks`
|
151
|
+
- **Fixed** line in wrong position
|
152
|
+
- `Ecoportal::API::V1::People#batch`
|
153
|
+
- `Ecoportal::API::Common::ElasticApmIntegration#unexpected_server_error?`
|
154
|
+
- No code or code lesser than 100 is a server error as well
|
107
155
|
|
108
156
|
### Changed
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
157
|
+
|
158
|
+
- `Ecoportal::API::Common::Client`: changed
|
159
|
+
- Logging the **response** of batches or batch jobs can be handy when debugging the back-end
|
160
|
+
- **removed** method `#without_response_logging`
|
161
|
+
- This change entailed to remove dependencies in `Ecoportal::API::V1::People`
|
162
|
+
- Specifically in methods `#batch`, `#job_result` and `#create_job`
|
163
|
+
- `@response_logging_enabled` to be set in initialization stage (added parameter for `.new`)
|
115
164
|
|
116
165
|
## [0.8.3] - 2021-05-24
|
117
166
|
|
118
167
|
### Added
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
168
|
+
|
169
|
+
- `Ecoportal::API::Errors` namespace
|
170
|
+
- `Ecoportal::API::Errors::Base` base error class.
|
171
|
+
- `Ecoportal::API::Errors::TimeOut` error when an api request fails with time out.
|
172
|
+
- This serves the purpose to allow a client script to re-start the process where it stopped by capturing this specific Error
|
173
|
+
- `Ecoportal::API::Common::BaseModel::UnlinkedModel` added more description to track down the source of the error.
|
174
|
+
- `Ecoportal::API::Common::BaseModel#reset!` added parameter `key`, which should try to recover `doc[key]` from `original_doc[key]`
|
175
|
+
- Thanks to this, you are supposed to be able to do things like:
|
176
|
+
- `person.account = nil && person.reset!("account")`
|
177
|
+
- `person.name = nil && person.reset!("name")`
|
178
|
+
- `Ecoportal::API::V1::People#job` methods to provide more information on failure.
|
179
|
+
- Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
|
180
|
+
- `Ecoportal::API::Internal::Account#permissions_merged`
|
181
|
+
- `Ecoportal::API::Internal::Permissions#person_abilities` (new ability)
|
182
|
+
- `Ecoportal::API::Internal::Account#user_id`
|
133
183
|
|
134
184
|
### Fixed
|
135
|
-
|
136
|
-
|
137
|
-
-
|
138
|
-
|
185
|
+
|
186
|
+
- `Ecoportal::API::Internal::Account`: consistency in setting arrays (`uniq!` & `compact`)
|
187
|
+
- `#policy_group_ids=`, `#login_provider_ids=`, `#starred_ids=`
|
188
|
+
- `Ecoportal::API::Common::HashDiff.diff` was including empty `{}` objects
|
189
|
+
- This change sacrifices the case `account: {}` (which will be also removed from `as_update`), but it should be fine.
|
139
190
|
|
140
191
|
### Changed
|
141
|
-
- `Ecoportal::API::V1::People#job` to raise specific error on time out `API::Errors::TimeOut`
|
142
|
-
- Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
|
143
|
-
- `Ecoportal::API::Internal::Account` **removed** methods: `#permissions_preset`, `#preset` and `#preset=`
|
144
|
-
- `Ecoportal::API::Internal::Person#account=` added support for `user_id` which should remain unchanged when existing
|
145
|
-
- **remove** from `as_update` **read-only** data
|
146
|
-
- `Ecoportal::API::Common::HashDiff.diff` added parameter `:ignore` (`Array`)
|
147
|
-
- `Ecoportal::API::Common::BaseModel#as_update` added parameter `:ignore`
|
148
|
-
- `Ecoportal::API::V1::Person#as_update` added method, which ignores `subordinates`
|
149
|
-
- `Ecoportal::API::Internal::Person#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
|
150
|
-
- `Ecoportal::API::Internal::Account#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
|
151
|
-
- `Ecoportal::API::Common::Client` native support for `elastic-apm`
|
152
|
-
- Via new module `Ecoportal::API::Common::ElasticApmIntegration` with method `log_unexpected_server_error`, which will only log an `UnexpectedServerError` to _ElasticAPM_ if
|
153
|
-
1. There's a correct configuration: environmental variables `ELASTIC_APM_KEY` and `ELASTIC_APM_ACCOUNT_ID` are defined
|
154
|
-
2. The `Response` from the server gave `code` in the range `5xx` (which are those under server responsibility)
|
155
|
-
- `Ecoportal::API::Common::Client` added retry logics when `response.status == 5xx`
|
156
192
|
|
157
|
-
|
193
|
+
- `Ecoportal::API::V1::People#job` to raise specific error on time out `API::Errors::TimeOut`
|
194
|
+
- Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
|
195
|
+
- `Ecoportal::API::Internal::Account` **removed** methods: `#permissions_preset`, `#preset` and `#preset=`
|
196
|
+
- `Ecoportal::API::Internal::Person#account=` added support for `user_id` which should remain unchanged when existing
|
197
|
+
- **remove** from `as_update` **read-only** data
|
198
|
+
- `Ecoportal::API::Common::HashDiff.diff` added parameter `:ignore` (`Array`)
|
199
|
+
- `Ecoportal::API::Common::BaseModel#as_update` added parameter `:ignore`
|
200
|
+
- `Ecoportal::API::V1::Person#as_update` added method, which ignores `subordinates`
|
201
|
+
- `Ecoportal::API::Internal::Person#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
|
202
|
+
- `Ecoportal::API::Internal::Account#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
|
203
|
+
- `Ecoportal::API::Common::Client` native support for `elastic-apm`
|
204
|
+
- Via new module `Ecoportal::API::Common::ElasticApmIntegration` with method `log_unexpected_server_error`, which will only log an `UnexpectedServerError` to _ElasticAPM_ if
|
205
|
+
1. There's a correct configuration: environmental variables `ELASTIC_APM_KEY` and `ELASTIC_APM_ACCOUNT_ID` are defined
|
206
|
+
2. The `Response` from the server gave `code` in the range `5xx` (which are those under server responsibility)
|
207
|
+
- `Ecoportal::API::Common::Client` added retry logics when `response.status == 5xx`
|
158
208
|
|
159
|
-
|
209
|
+
## [0.8.2] - 2021-02-24
|
160
210
|
|
161
211
|
### Fixed
|
162
|
-
|
212
|
+
|
213
|
+
- `Ecoportal::API::V1::Person#filter_tags=` should ignore `nil` values
|
163
214
|
|
164
215
|
### Changed
|
165
|
-
- removed all the namespace under `Ecoportal::API::V2` as that is managed by `ecoportal-api-oozes` gem
|
166
|
-
- url: https://rubygems.org/gems/ecoportal-api-oozes
|
167
|
-
- `Ecoportal::API::V1::People.get` should return a `Person` object
|
168
|
-
- observe that it was returning the `WrappedResponse` (an `Enumerable` helper that works better when getting multiple people).
|
169
216
|
|
170
|
-
|
217
|
+
- removed all the namespace under `Ecoportal::API::V2` as that is managed by `ecoportal-api-oozes` gem
|
218
|
+
- url: <https://rubygems.org/gems/ecoportal-api-oozes>
|
219
|
+
- `Ecoportal::API::V1::People.get` should return a `Person` object
|
220
|
+
- observe that it was returning the `WrappedResponse` (an `Enumerable` helper that works better when getting multiple people).
|
171
221
|
|
172
|
-
|
222
|
+
## [0.7.5] - 2021-02-12
|
173
223
|
|
174
224
|
### Fixed
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
225
|
+
|
226
|
+
- `pretty_print` method was colliding with `pp` module:
|
227
|
+
- renamed to `Ecoportal::API::Common::BaseModel#print_pretty`
|
228
|
+
- renamed to `Ecoportal::API::Common::BatchReponse#print_pretty`
|
229
|
+
- renamed to `Ecoportal::API::Common::Reponse#print_pretty`
|
230
|
+
- renamed to `Ecoportal::API::Common::WrappedResponse#print_pretty`
|
180
231
|
|
181
232
|
### Changed
|
182
|
-
- forgot to change `Ecoportal::API::VERSION` during last release
|
183
233
|
|
184
|
-
|
234
|
+
- forgot to change `Ecoportal::API::VERSION` during last release
|
185
235
|
|
186
|
-
|
236
|
+
## [0.7.4] - 2021-01-2
|
187
237
|
|
188
238
|
### Fixed
|
189
|
-
- changed `compact` to `compact!`:
|
190
|
-
- `Ecoportal::API::V1::Person#filter_tags=`
|
191
|
-
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
192
|
-
- `Ecoportal::API::Internal::Account#login_provider_ids=`
|
193
|
-
- `Ecoportal::API::Internal::Account#starred_ids=`
|
194
239
|
|
195
|
-
|
240
|
+
- changed `compact` to `compact!`:
|
241
|
+
- `Ecoportal::API::V1::Person#filter_tags=`
|
242
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
243
|
+
- `Ecoportal::API::Internal::Account#login_provider_ids=`
|
244
|
+
- `Ecoportal::API::Internal::Account#starred_ids=`
|
196
245
|
|
197
|
-
|
246
|
+
### Changed
|
198
247
|
|
199
248
|
### Added
|
200
249
|
|
201
250
|
### Fixed
|
202
|
-
- `Ecoportal::API::V1::Person#email=`: was not showing the incorrect value in the error message
|
203
|
-
- added `compact` to remove `null` values on:
|
204
|
-
- `Ecoportal::API::V1::Person#filter_tags=`
|
205
|
-
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
206
|
-
- `Ecoportal::API::Internal::Account#login_provider_ids=`
|
207
|
-
- `Ecoportal::API::Internal::Account#starred_ids=`
|
208
|
-
|
209
|
-
### Changed
|
210
251
|
|
252
|
+
- `Ecoportal::API::V1::Person#email=`: was not showing the incorrect value in the error message
|
253
|
+
- added `compact` to remove `null` values on:
|
254
|
+
- `Ecoportal::API::V1::Person#filter_tags=`
|
255
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
256
|
+
- `Ecoportal::API::Internal::Account#login_provider_ids=`
|
257
|
+
- `Ecoportal::API::Internal::Account#starred_ids=`
|
211
258
|
|
212
259
|
## [0.7.2] - 2020-10-19
|
213
260
|
|
214
261
|
### Added
|
215
|
-
|
216
|
-
|
217
|
-
|
262
|
+
|
263
|
+
- `Ecoportal::API::V1::Person#email=`:
|
264
|
+
- do a minimum validation (no blanks in the email)
|
265
|
+
- set in lower case (as this is how it's in the server)
|
266
|
+
|
218
267
|
### Fixed
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
268
|
+
|
269
|
+
- `Ecoportal::API::V1::People#each`: when `silent` it shouldn't print a blank line
|
270
|
+
- fixed so they return empty array `[]` when `nil`:
|
271
|
+
- `Ecoportal::API::V1::Person#filter_tags`
|
272
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids`
|
273
|
+
- `Ecoportal::API::Internal::Account#login_provider_ids`
|
274
|
+
- `Ecoportal::API::Internal::Account#starred_ids`
|
275
|
+
|
225
276
|
### Changed
|
226
|
-
- made it so some methods the `Array` with `uniq` values:
|
227
|
-
- `Ecoportal::API::V1::Person#filter_tags=`
|
228
|
-
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
229
|
-
- made it so it only updates the keys defined in the `Hash` passed to the setter:
|
230
|
-
- `Ecoportal::API::Internal::Account#permissions_custom=`
|
231
|
-
- `Ecoportal::API::Internal::Account#preferences=`
|
232
277
|
|
278
|
+
- made it so some methods the `Array` with `uniq` values:
|
279
|
+
- `Ecoportal::API::V1::Person#filter_tags=`
|
280
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids=`
|
281
|
+
- made it so it only updates the keys defined in the `Hash` passed to the setter:
|
282
|
+
- `Ecoportal::API::Internal::Account#permissions_custom=`
|
283
|
+
- `Ecoportal::API::Internal::Account#preferences=`
|
233
284
|
|
234
285
|
## [0.7.1] - 2020-09-30
|
235
286
|
|
236
287
|
### Added
|
237
|
-
|
238
|
-
|
288
|
+
|
289
|
+
- `Ecoportal::API::Internal::Permissions`: **update for new ability `tasks` of ecoPortal release `1.5.3`**
|
290
|
+
- `Ecoportal::API::V1::People#each`: added keyword argument `silent:` to display download progress
|
291
|
+
|
239
292
|
### Fixed
|
240
|
-
|
293
|
+
|
294
|
+
- `Ecoportal::API::V1::People#each`: when no block provided, it was creating an `Enumarator` without preserving the parameters (i.e. `:q` or `per_page` were lost)
|
241
295
|
|
242
296
|
## [0.7.0] - 2020-09-11
|
243
297
|
|
244
298
|
### Added
|
245
|
-
|
246
|
-
|
247
|
-
|
299
|
+
|
300
|
+
- added hook, **private** method `body_data` for child classes to define behaviour on `response.body` to
|
301
|
+
- `Ecoportal::API::V1::People`
|
302
|
+
- `Ecoportal::API::Common::BatchOperation`
|
248
303
|
|
249
304
|
### Changed
|
250
|
-
- `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.2`**
|
251
|
-
- decoupled abilities: `person_core` into `person_core_create`, `person_core_edit`
|
252
|
-
### Fixed
|
253
305
|
|
306
|
+
- `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.2`**
|
307
|
+
- decoupled abilities: `person_core` into `person_core_create`, `person_core_edit`
|
254
308
|
|
255
309
|
## [0.6.0] - 2020-07-14
|
256
310
|
|
257
311
|
### Added
|
258
|
-
|
259
|
-
|
260
|
-
-
|
261
|
-
|
312
|
+
|
313
|
+
- `Ecoportal::API::Common::BaseModel#initial_doc`: `#consolidate!` modifies `original_doc`
|
314
|
+
- this helper allows to know what was the initial document the object was created with
|
315
|
+
- `Ecoportal::API::Common::BaseModel#as_update`: added parameter (default: `:last` => compare with `original_doc`)
|
316
|
+
- calling it with `:total` will compare the current `doc` with the `initial_doc`
|
317
|
+
|
262
318
|
### Changed
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
319
|
+
|
320
|
+
- `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.0`**
|
321
|
+
- added abilities: `person_core`, `person_account`, `person_details`
|
322
|
+
- removed ability: `people`
|
323
|
+
- renamed `print` to `pretty_print` to avoid overriding `$stdout.print`, on:
|
324
|
+
- `Ecoportal::API::Common::BaseModel`
|
325
|
+
- `Ecoportal::API::Common::BatchReponse`
|
326
|
+
- `Ecoportal::API::Common::Response`
|
327
|
+
- `Ecoportal::API::Common::WrappedResponse`
|
328
|
+
|
271
329
|
### Fixed
|
272
|
-
|
330
|
+
|
331
|
+
- `Ecoportal::API::Internal::Preferences`: **kiosk** settings should default to `false` (`nil`)
|
273
332
|
|
274
333
|
## [0.5.8] - 2020-06-23
|
275
334
|
|
276
|
-
### Added
|
277
|
-
### Changed
|
278
335
|
### Fixed
|
279
|
-
- `Ecoportal::API::V1::Person#filter_tags=`: `original_doc["filter_tags"]` is `nil` when creating a person
|
280
|
-
- `Ecoportal::API::Internal::Account#policy_group_ids=`: `original_doc["account"]` is `nil` when creating a person
|
281
336
|
|
337
|
+
- `Ecoportal::API::V1::Person#filter_tags=`: `original_doc["filter_tags"]` is `nil` when creating a person
|
338
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids=`: `original_doc["account"]` is `nil` when creating a person
|
282
339
|
|
283
340
|
## [0.5.7] - 2020-06-22
|
284
341
|
|
285
342
|
### Added
|
286
|
-
|
287
|
-
|
343
|
+
|
344
|
+
- `Ecoportal::API::V1::PersonSchema`: added `enable_tags` & `tags` properties
|
345
|
+
- `Ecoportal::API::Internal::Preferences`: added missing fields for **kiosk**
|
346
|
+
|
288
347
|
### Changed
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
-
|
293
|
-
|
348
|
+
|
349
|
+
- `Ecoportal::API::V1::People::JOB_TIMEOUT`: from 1 minute to 3 minutes
|
350
|
+
- `Ecoportal::API::V1::Person#filter_tags=`: will preserve the original order of the matching tags
|
351
|
+
- this change is to prevent `as_update` to generate false update positives
|
352
|
+
- `Ecoportal::API::Internal::Account#policy_group_ids=`: will preserve the original order of the matching ids
|
353
|
+
- this change is to prevent `as_update` to generate false update positives
|
354
|
+
|
294
355
|
### Fixed
|
295
|
-
- `Ecoportal::API::Internal::Preferences`: access `doc` using string keys (not with `symbol` keys)
|
296
356
|
|
357
|
+
- `Ecoportal::API::Internal::Preferences`: access `doc` using string keys (not with `symbol` keys)
|
297
358
|
|
298
359
|
## [0.5.6] - 2020-06-08
|
299
360
|
|
300
361
|
### Added
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
### Fixed
|
362
|
+
|
363
|
+
- this `CHANGELOG.md` file
|
364
|
+
- person model: `freemium` core property
|