CHANGELOG.md in eco-helpers-1.5.0 vs CHANGELOG.md in eco-helpers-1.5.1
- old
+ new
@@ -1,8 +1,51 @@
# Change Log
All notable changes to this project will be documented in this file.
+## [1.5.1] - 2020-10-xx
+
+### Added
+ - `presets_values.json`: added the new ability `tasks` (eP release `1.5.3`)
+ - `Ecoportal::API::Internal::Person` patch helper methods:
+ * `new?`: to know if this person is new in the people manager as a result of the current launch
+ * `account_added?`: to know if this person did not have account but they will have it after the current launch
+ - `Eco::API::Session#new_job`: to shorten code
+ - `Eco::API::Common::DefaultPasers::PolicyGroupsParser`: made native, as it is a very common parser
+ - `Eco::API::Common::DefaultPasers::FreemiumParser` to parse/serialise boolean
+ - `Eco::API::Common::People::PersonParser`: added `freemium` as core attribute
+ - `Eco::API::UserCases::DefaultCases::RecoverDBCase`: recovers also `freemium`
+ - scoping **microcases** : to be able to centralize common code between use cases
+ - at its early stage (currently not available for usage)
+ - dependency on `ecoportal-api-oozes` gem
+ - added basic support for **api** `v2`
+ - you can use `session.api(:oozes)` to obtain an api `v2`
+ - you can manage your keys directly on the apis configuration
+ - added `external_key:`, `user_key:` and `apis.default_user_key`
+
+ ```ruby
+ ASSETS.config do |config|
+ config.apis.default_user_key = 'your-user-key-here'
+
+ config.add_api("org-environment", {
+ host: 'pre.dev.ecoportal.com',
+ key: 'an-internal-org-api-key',
+ version: :internal,
+ external_key: 'an-external-org-api-key',
+ user_key: 'org-user-key-for-activity-stream',
+ mode: :local
+ })
+ end
+ ```
+### Changed
+ - internally: load `Eco::API::Common::Session` before `Eco::API::Common::People`
+ - `Eco::API::Common::Person::EntryFactory`: made child of `Eco::API::Common::Session::BaseSession`
+ - refactored all the `api` connection creation for simplicity and to support multi api version
+ - delegated `Eco::API::Session::Batch#get` to `Ecoportal::API::V1::People#get_all`
+
+### Fixed
+ - correct `.gemspec` dependency version restrictions
+
## [1.5.0] - 2020-09-11
### Added
- `Eco::Data::Files#file_empty?` to prevent error when checking encoding
### Changed
@@ -15,11 +58,11 @@
## [1.4.2] - 2020-07-23
### Added
### Changed
### Fixed
-- preserve backtrace on logging
+ - preserve backtrace on logging
## [1.4.0] - 2020-07-14
### Added
### Changed
@@ -86,10 +129,10 @@
### Changed
### Fixed
- `Eco::API::Organization::TagTree#tag?` to accept `nil` by returning `false`
- `Eco::API::Common::People::DefaultParsers::DateParser` will parse to `Date` class
* it was parsing to `Time` class, while the native gem `ecoportal-api` parses as `Date` ([reference](https://gitlab.com/ecoPortal/ecoportal-api/-/blob/master/lib/ecoportal/api/v1/schema_field.rb))
-## [1.3.11] - 2020-05-19
+## [1.3.12] - 2020-05-19
### Added
### Changed
- stop using `email` as `external_id` on `People#person` & `People#find`
* this should result in more accurate searches when using `:strict` options