Skip to content

Latest commit

 

History

History
231 lines (158 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

231 lines (158 loc) · 10.7 KB

Changelog

Not released

0.24.0

  • Add support for nested select statements that are used in conjuction with nested includes (#102)

0.23.0

  • Partially addresses #90. #select accepts a block and returns an array of filtered SObjects. (#99)

0.22.1

  • Fixes #94. Moved query logic and corrected ActiveQuery ids method (#97)

0.22.0

  • Add ids method to ActiveQuery interface (#94)
  • Add missing standard type for ContentNote and fix the way the model generator handles the name input so it acts a bit more predictably. (#95)

0.21.1

  • Fixes #91. Applies scopes to eager-loaded associations when they are nested. (#92)

0.21.0

  • Uninitialized attributes will ERROR instead of returning as nil (#78)
  • Add Range condition support (#87)
  • Use ':decimal' type for Salesforce currency fields in model generation (#88) (#88)
  • Fix includes with has_one associations when no associated record (#83)
  • Raise UnknownFieldError if .where is given non-existent attribute names (#80)
  • Fix .update and .update!: include given nil valued attributes in request (#79)
  • Change .first to not query the API if records have already been retrieved (#77)

0.20.1

  • Revert "ActiveForce .first performance enhancement (#73)" (#76)

0.20.0

  • Change .first to not query the API if records have already been retrieved (#73)
  • Bugfix: Transform NULL values for SF Bulk API, which expects "#N/A" (#74)

0.19.0

  • Bulk API methods. (#65)

0.18.0

  • Fix eager loading of scoped associations. (#67)
  • Adding .blank?, .present?, and .any? delegators to ActiveQuery. (#68)
  • Adding update and update! class methods on SObject. (#66)
  • Allow an argument to last allowing the query to select the last(n) records. Default is 1. (#66)

0.17.0

  • Fix bug with has_many queries due to query method chaining mutating in-place (#10)

0.16.0

  • Fix default in models when default value is overridden by the same value, it is still sent to salesforce (#61)
  • Support to fetch multi-level associations during eager load (#62)

0.15.1

  • Revert new pluck implementation due to compatibility issues (#60)

0.15.0

  • Fix model defaults so data is persisted in Salesforce (#55)
  • Add pluck query method (#51)
  • Add #order method to active query that accepts arguments in several formats ( symbol, string that has raw soql) (#58)

0.14.0

  • Add scoped_as option to has_one association (#50)
  • Add default to model fields (#49)
  • Allow nil datetimes as :datetime fields (#52)

0.13.2

  • Add #loaded? method for ActiveQueries to allow the detection of records loaded in memory or pending to be loaded. (#45)
  • Use attributes' values_for_database (serialize) value instead of using the type casted value to allow more flexibility when creating your own ActiveModel type

0.13.1

  • Fix constructor of ActiveForce::RecordNotFound (#44)
  • Add .to_json and .as_json to SObject to allow JSON serialization (#37)
  • Memoize the ActiveForce::Mapping#mappings Hash since it is based on the fields and those are generally only set when the class is loaded. Also use Hash#key which returns the key for a value rather than Hash#invert which creates a new Hash with key/value inverted. (#41)

0.13.0

  • Add .find! to SObject (#39)

0.12.0

  • Add .describe to SObject to allow convenient metadata fetching (#36)

0.11.4

  • Properly escape single quote (#29)
  • Fix Time value formatting in .where (#28)

0.11.3

  • Fix has_one assignment when receiver does not have id (#23)

0.11.2

  • Fix: prevent association methods from running queries when keys do not exist (#20)

0.11.1

  • Fix datetime fields of SObjects to use iso(8601) format when sending to SF (#18)

0.11.0

  • Added support for 'or' and 'not' clauses (#13)
  • Added support for the SUM aggregate function (#14)
  • Allow model to be passed as a string or a constant (#16)

0.10.0

  • Fix #where chaining on ActiveQuery (#7)
  • Add #find_by! which raises ActiveForce::RecordNotFound if nothing is found. (#8)
  • Fix #includes to find, build, and set the association. (#12)

0.9.1

  • Fix invalid error class (#6)

0.9.0

  • Add support for Rails 7 and update Restforce dependency to newer version. (#3)
  • Add has_one association. (#3)
  • Model generator enhancements (#3):
    • automatically add types to fields
    • sort fields alphabetically
    • add table_name to class
    • add optional namespace parameter so generated models can be namespaced
  • Add get/set via [] and []= for SObject attributes. (#3)

0.7.1

  • Allow sfdc_client to be set. (#92)

0.7.0

  • Rails4-style conditional has_many associations (Dan Olson)
  • Add #includes query method to eager load has_many association. (Dan Olson)
  • Add #includes query method to eager load belongs_to association. (#65)
  • SObject#destroy method.

0.6.1

  • Fix missing require of 'restforce'. Now clients don't need to add an initializer.

0.6.0

0.5.0

0.4.2

0.3.2

  • Fixed gemspec.

0.3.1

  • Create different classes for associations. (#4)
  • Big refactor on has_many association. (Armando Andini)
  • Add a lot of specs and refactors. (Armando Andini)
  • Add a Finders module. (Armando Andini)
  • Add fist and last method to SObject.

0.2.0

  • Add belogns_to and has_many associations.
  • Changed when the SOQL query is sent to the client.
  • Add join method to query to use associtations.

0.1.0

  • Add query builder object to chain conditions.
  • Update update and create methods.
  • Add Campaing standard table name.

0.0.6.alfa

  • ActiveForce::SObject#table_name is auto populated using the class name. It adds "__c" to all non standard types.