CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • api breaking changes 4.5
Pages: [1]

Author Topic: api breaking changes 4.5  (Read 356 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
api breaking changes 4.5
September 28, 2014, 06:24:21 pm
I just regenerated the test examples & you can see the changes here

https://github.com/civicrm/civicrm-core/pull/4256

Of note to extension writers there are breaking changes around the soft_credit & honor_contact fields (both breaking of the test contract & non-contract changes) and there are also breaking changes around whether pseudoconstants are returned as values or labels.

To put it simply - beware. The breakages around honor_contact are somewhat predictable but the ones around the psuedoconstants are not.

A key function of the api is to make it possible for extension writers to be more version agnostic with their extensions - rather than having to write a release of the extension per api version. However, this doesn't always happen.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: api breaking changes 4.5
September 29, 2014, 06:56:38 am
Is this something that someone is likely to fix -- or should it just get noted on http://wiki.civicrm.org/confluence/display/CRMDOC/API+changes ?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: api breaking changes 4.5
September 29, 2014, 12:20:29 pm
It should be fixed - because the point of writing tests is that you write the tests in exchange for the tests being respected. I'm feeling a depressed after discovering this so will think more about it later in the week
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: api breaking changes 4.5
October 08, 2014, 02:14:17 am
update - Dave fixed the test-breaking changes - create has been fixed so it still supports honor_contact_id & soft_credit_to
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • api breaking changes 4.5

This forum was archived on 2017-11-26.