Change Log

All notable changes to this project will be documented in this file.

[0.8.2] - 2021-02-xx

Added

Fixed

  • Ecoportal::API::V1::Person#filter_tags= should ignore nil values

Changed

  • removed all the namespace under Ecoportal::API::V2 as that is managed by ecoportal-api-oozes gem
  • Ecoportal::API::V1::People.get should return a Person object
    • observe that it was returning the WrappedResponse (an Enumerable helper that works better when getting multiple people).

[0.7.5] - 2021-02-12

Added

Fixed

  • pretty_print method was colliding with pp module:
    • renamed to Ecoportal::API::Common::BaseModel#print_pretty
    • renamed to Ecoportal::API::Common::BatchReponse#print_pretty
    • renamed to Ecoportal::API::Common::Reponse#print_pretty
    • renamed to Ecoportal::API::Common::WrappedResponse#print_pretty

Changed

  • forgot to change Ecoportal::API::VERSION during last release

[0.7.4] - 2021-01-2

Added

Fixed

  • changed compact to compact!:
    • Ecoportal::API::V1::Person#filter_tags=
    • Ecoportal::API::Internal::Account#policy_group_ids=
    • Ecoportal::API::Internal::Account#login_provider_ids=
    • Ecoportal::API::Internal::Account#starred_ids=

Changed

[0.7.3] - 2020-11-30

Added

Fixed

  • Ecoportal::API::V1::Person#email=: was not showing the incorrect value in the error message
  • added compact to remove null values on:
    • Ecoportal::API::V1::Person#filter_tags=
    • Ecoportal::API::Internal::Account#policy_group_ids=
    • Ecoportal::API::Internal::Account#login_provider_ids=
    • Ecoportal::API::Internal::Account#starred_ids=

Changed

[0.7.2] - 2020-10-19

Added

  • Ecoportal::API::V1::Person#email=:
    • do a minimum validation (no blanks in the email)
    • set in lower case (as this is how it's in the server) ### Fixed
  • Ecoportal::API::V1::People#each: when silent it shouldn't print a blank line
  • fixed so they return empty array [] when nil:
    • Ecoportal::API::V1::Person#filter_tags
    • Ecoportal::API::Internal::Account#policy_group_ids
    • Ecoportal::API::Internal::Account#login_provider_ids
    • Ecoportal::API::Internal::Account#starred_ids ### Changed
  • made it so some methods the Array with uniq values:
    • Ecoportal::API::V1::Person#filter_tags=
    • Ecoportal::API::Internal::Account#policy_group_ids=
  • made it so it only updates the keys defined in the Hash passed to the setter:
    • Ecoportal::API::Internal::Account#permissions_custom=
    • Ecoportal::API::Internal::Account#preferences=

[0.7.1] - 2020-09-30

Added

  • Ecoportal::API::Internal::Permissions: update for new ability tasks of ecoPortal release 1.5.3
  • Ecoportal::API::V1::People#each: added keyword argument silent: to display download progress ### Fixed
  • 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)

[0.7.0] - 2020-09-11

Added

  • added hook, private method body_data for child classes to define behaviour on response.body to
    • Ecoportal::API::V1::People
    • Ecoportal::API::Common::BatchOperation

Changed

  • Ecoportal::API::Internal::Permissions: update for new abilities of ecoPortal release 1.5.2
    • decoupled abilities: person_core into person_core_create, person_core_edit ### Fixed

[0.6.0] - 2020-07-14

Added

  • Ecoportal::API::Common::BaseModel#initial_doc: #consolidate! modifies original_doc
    • this helper allows to know what was the initial document the object was created with
  • Ecoportal::API::Common::BaseModel#as_update: added parameter (default: :last => compare with original_doc)
    • calling it with :total will compare the current doc with the initial_doc ### Changed
  • Ecoportal::API::Internal::Permissions: update for new abilities of ecoPortal release 1.5.0
    • added abilities: person_core, person_account, person_details
    • removed ability: people
  • renamed print to pretty_print to avoid overriding $stdout.print, on:
    • Ecoportal::API::Common::BaseModel
    • Ecoportal::API::Common::BatchReponse
    • Ecoportal::API::Common::Response
    • Ecoportal::API::Common::WrappedResponse ### Fixed
  • Ecoportal::API::Internal::Preferences: kiosk settings should default to false (nil)

[0.5.8] - 2020-06-23

Added

Changed

Fixed

  • Ecoportal::API::V1::Person#filter_tags=: original_doc["filter_tags"] is nil when creating a person
  • Ecoportal::API::Internal::Account#policy_group_ids=: original_doc["account"] is nil when creating a person

[0.5.7] - 2020-06-22

Added

  • Ecoportal::API::V1::PersonSchema: added enable_tags & tags properties
  • Ecoportal::API::Internal::Preferences: added missing fields for kiosk ### Changed
  • Ecoportal::API::V1::People::JOB_TIMEOUT: from 1 minute to 3 minutes
  • Ecoportal::API::V1::Person#filter_tags=: will preserve the original order of the matching tags
    • this change is to prevent as_update to generate false update positives
  • Ecoportal::API::Internal::Account#policy_group_ids=: will preserve the original order of the matching ids
    • this change is to prevent as_update to generate false update positives ### Fixed
  • Ecoportal::API::Internal::Preferences: access doc using string keys (not with symbol keys)

[0.5.6] - 2020-06-08

Added

  • this CHANGELOG.md file
  • person model: freemium core property ### Changed ### Fixed