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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d89b2ca34f7a85f9cbeaf61331b155fb83b4f80ee8ff9d57133837d4f87bf03f
4
- data.tar.gz: 93e71b77a46c283f01708f94099580774cf5d72b49df2041e15688f9622dfe08
3
+ metadata.gz: 4cc0547ca88715ad6b0f2d3bc7ed4661bab0f9259117ce28aa5d43aab0761d02
4
+ data.tar.gz: 1e109b427a0e71bd91edf1d4e9ce6e7cf9ac2df998662c97746df30b8e07998b
5
5
  SHA512:
6
- metadata.gz: c2f5a46fb757bebae8ac0727ce9ea89d801e5fb3b91aac3146b2117c43f852682ed7bbd3ca7020b43ddde5b1ccdd4c4297bf52afa0fa5a859def1701844caedc
7
- data.tar.gz: 4b1fc568bae19759bac6d62badf06a9a949988b7667e87e8b2ec0ab90b5604d67e33ea695117d43bfa329d1706c81bf8fa7244323264052205b49b01bd38c233
6
+ metadata.gz: 44eba3743e30beff3c04e71b1191900b8477d81af1371f1a5003cb6847384e384d535e51390e4f8db39e8aa81a0cbf7fc200a87ac18036c45e56530b72b09342
7
+ data.tar.gz: 1749045310b0748e8935027cd0d1b9d69e7a84c4534b27017bd1581848d579c6359e59dedfe19e3cbe451038e2a4c70fb82150a01ca4c9260eadde64bfac5a92
@@ -0,0 +1,4 @@
1
+ {
2
+ "MD013": false,
3
+ "MD024": false
4
+ }
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7.8
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
- - `rubocop`
39
+
40
+ - `rubocop`
8
41
 
9
42
  ### Changed
10
- - `Ecoportal::API::Common::Client#with_retry`
11
- - Make resilient (**re-try**) to recent silent server errors where the body doesn't parse as JSON.
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
- - `Ecoportal::API::V1::Person`
20
- - **removed** property `subordinates`
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
- - upgraded some gems
59
+
60
+ - upgraded some gems
26
61
 
27
62
  ### Fixed
28
- - Compatibility with `ruby 3`
29
- - replaced `Proc.new` (with no block) by `block` in methods
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
- - `Ecoportal::API::V1::Person#as_update` missing parameter on `super` call.
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
- - Softened max version of **gem** dependencies
40
- - Upgraded required ruby version
76
+
77
+ - Softened max version of **gem** dependencies
78
+ - Upgraded required ruby version
41
79
 
42
80
  ### Fixed
43
- - `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
44
- - This was affecting `reset!` as `doc` was being changed
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
- - `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
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
- - `Ecoportal::API::V1::Person#contractor_organization_id` support for contractor management
55
- - `Ecoportal::API::Common::BaseModel` **added** `doc` helper methods:
56
- - `replace_doc!` and `#replace_original_doc!`
57
- - `Ecoportal::API::Internal::Person` **added** methods
58
- - **breaking change**, they default to compare with `original_doc`, while they did it with `initial_doc`)
59
- - `#new?` => to know if this person is being created now (it doesn't exist on **server side**).
60
- - `#account_added?` => to know if this person is getting the account added.
61
- - `#account_removed?` => to know if this person is getting their account removed.
62
- - `Ecoportal::API::Common::Client#host` expose
63
- - `Ecoportal::API::Internal::Permissions` added abilities
64
- - `contractor_management`
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
- - `Ecoportal::API::V1::PersonDetails.key?` should index first.
108
+
109
+ - `Ecoportal::API::V1::PersonDetails.key?` should index first.
68
110
 
69
111
  ### Changed
70
- - `Ecoportal::API::V1::Person::VALID_TAG_REGEX` allow dot `.` in tags.
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
- - `Ecoportal::API::V1::PersonDetails#[]` to raise a specific error type to allow handling
76
- - `Ecoportal::API::V1::PersonDetails.key?` to allow to check if a field exists
77
- - `Ecoportal::API::Internal::Account#force_send_invites` support for back-end new method
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
- - `Ecoportal::API::V1::People#get` fixed typo
81
- - `Ecoportal::API::Common::BaseModel` `#original_doc` and `#initial_doc` maybe empty for the parent object
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
- - `Ecoportal::API::V1::People#each` limited the `GET` retries to `5`
85
- - `Ecoportal::API::Internal::Account#default_tag=`
86
- - Controls input type to be `String` or `nil`
87
- - Inherent `upcase`
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
- - `Ecoportal::API::Internal::Permissions` added abilities
93
- - `visitor_management`, `cross_register_reporting` and `broadcast_notifications`
94
- - Some yardocs too
95
- - Some callbacks are done in a non-obvious way and the returned object type was not documented
96
- - For this reason, some yardocs have been added to some of the parts that have been worked on.
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
- - `Ecoportal::API::V1::People#create_job`
100
- - **Removed** call to `BatchOperation#process_response`
101
- - The method was is already called by `job_result`
102
- - As a consequence there was a double up of `callbacks`
103
- - **Fixed** line in wrong position
104
- - `Ecoportal::API::V1::People#batch`
105
- - `Ecoportal::API::Common::ElasticApmIntegration#unexpected_server_error?`
106
- - No code or code lesser than 100 is a server error as well
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
- - `Ecoportal::API::Common::Client`: changed
110
- - Logging the **response** of batches or batch jobs can be handy when debugging the back-end
111
- - **removed** method `#without_response_logging`
112
- - This change entailed to remove dependencies in `Ecoportal::API::V1::People`
113
- - Specifically in methods `#batch`, `#job_result` and `#create_job`
114
- - `@response_logging_enabled` to be set in initialization stage (added parameter for `.new`)
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
- - `Ecoportal::API::Errors` namespace
120
- - `Ecoportal::API::Errors::Base` base error class.
121
- - `Ecoportal::API::Errors::TimeOut` error when an api request fails with time out.
122
- - This serves the purpose to allow a client script to re-start the process where it stopped by capturing this specific Error
123
- - `Ecoportal::API::Common::BaseModel::UnlinkedModel` added more description to track down the source of the error.
124
- - `Ecoportal::API::Common::BaseModel#reset!` added parameter `key`, which should try to recover `doc[key]` from `original_doc[key]`
125
- - Thanks to this, you are supposed to be able to do things like:
126
- - `person.account = nil && person.reset!("account")`
127
- - `person.name = nil && person.reset!("name")`
128
- - `Ecoportal::API::V1::People#job` methods to provide more information on failure.
129
- - Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
130
- - `Ecoportal::API::Internal::Account#permissions_merged`
131
- - `Ecoportal::API::Internal::Permissions#person_abilities` (new ability)
132
- - `Ecoportal::API::Internal::Account#user_id`
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
- - `Ecoportal::API::Internal::Account`: consistency in setting arrays (`uniq!` & `compact`)
136
- - `#policy_group_ids=`, `#login_provider_ids=`, `#starred_ids=`
137
- - `Ecoportal::API::Common::HashDiff.diff` was including empty `{}` objects
138
- - This change sacrifices the case `account: {}` (which will be also removed from `as_update`), but it should be fine.
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
- ## [0.8.2] - 2021-02-24
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
- ### Added
209
+ ## [0.8.2] - 2021-02-24
160
210
 
161
211
  ### Fixed
162
- - `Ecoportal::API::V1::Person#filter_tags=` should ignore `nil` values
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
- ## [0.7.5] - 2021-02-12
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
- ### Added
222
+ ## [0.7.5] - 2021-02-12
173
223
 
174
224
  ### Fixed
175
- - `pretty_print` method was colliding with `pp` module:
176
- - renamed to `Ecoportal::API::Common::BaseModel#print_pretty`
177
- - renamed to `Ecoportal::API::Common::BatchReponse#print_pretty`
178
- - renamed to `Ecoportal::API::Common::Reponse#print_pretty`
179
- - renamed to `Ecoportal::API::Common::WrappedResponse#print_pretty`
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
- ## [0.7.4] - 2021-01-2
234
+ - forgot to change `Ecoportal::API::VERSION` during last release
185
235
 
186
- ### Added
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
- ### Changed
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
- ## [0.7.3] - 2020-11-30
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
- - `Ecoportal::API::V1::Person#email=`:
216
- - do a minimum validation (no blanks in the email)
217
- - set in lower case (as this is how it's in the server)
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
- - `Ecoportal::API::V1::People#each`: when `silent` it shouldn't print a blank line
220
- - fixed so they return empty array `[]` when `nil`:
221
- - `Ecoportal::API::V1::Person#filter_tags`
222
- - `Ecoportal::API::Internal::Account#policy_group_ids`
223
- - `Ecoportal::API::Internal::Account#login_provider_ids`
224
- - `Ecoportal::API::Internal::Account#starred_ids`
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
- - `Ecoportal::API::Internal::Permissions`: **update for new ability `tasks` of ecoPortal release `1.5.3`**
238
- - `Ecoportal::API::V1::People#each`: added keyword argument `silent:` to display download progress
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
- - `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)
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
- - added hook, **private** method `body_data` for child classes to define behaviour on `response.body` to
246
- - `Ecoportal::API::V1::People`
247
- - `Ecoportal::API::Common::BatchOperation`
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
- - `Ecoportal::API::Common::BaseModel#initial_doc`: `#consolidate!` modifies `original_doc`
259
- - this helper allows to know what was the initial document the object was created with
260
- - `Ecoportal::API::Common::BaseModel#as_update`: added parameter (default: `:last` => compare with `original_doc`)
261
- - calling it with `:total` will compare the current `doc` with the `initial_doc`
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
- - `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.0`**
264
- - added abilities: `person_core`, `person_account`, `person_details`
265
- - removed ability: `people`
266
- - renamed `print` to `pretty_print` to avoid overriding `$stdout.print`, on:
267
- - `Ecoportal::API::Common::BaseModel`
268
- - `Ecoportal::API::Common::BatchReponse`
269
- - `Ecoportal::API::Common::Response`
270
- - `Ecoportal::API::Common::WrappedResponse`
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
- - `Ecoportal::API::Internal::Preferences`: **kiosk** settings should default to `false` (`nil`)
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
- - `Ecoportal::API::V1::PersonSchema`: added `enable_tags` & `tags` properties
287
- - `Ecoportal::API::Internal::Preferences`: added missing fields for **kiosk**
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
- - `Ecoportal::API::V1::People::JOB_TIMEOUT`: from 1 minute to 3 minutes
290
- - `Ecoportal::API::V1::Person#filter_tags=`: will preserve the original order of the matching tags
291
- * this change is to prevent `as_update` to generate false update positives
292
- - `Ecoportal::API::Internal::Account#policy_group_ids=`: will preserve the original order of the matching ids
293
- * this change is to prevent `as_update` to generate false update positives
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
- - this `CHANGELOG.md` file
302
- - person model: `freemium` core property
303
- ### Changed
304
- ### Fixed
362
+
363
+ - this `CHANGELOG.md` file
364
+ - person model: `freemium` core property