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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Missed 3.2 API changes
Pages: [1]

Author Topic: Missed 3.2 API changes  (Read 1400 times)

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Missed 3.2 API changes
November 09, 2010, 07:09:35 pm
Although I guess I'm not the only one who missed out on info about API changes it was a surprise to find the relationship functions split into two files. Could the new API team define a way to announce changes or if there is one could someone clue me in!  :)
« Last Edit: November 10, 2010, 06:43:52 am by FatherShawn »
Lead Developer, C3 Design.
Twitter: @FatherShawn

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Missed 3.2 API changes
November 09, 2010, 09:45:27 pm
thanks for updating docs.

Kurund
Found this reply helpful? Support CiviCRM

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Missed 3.2 API changes
November 10, 2010, 12:41:07 am
I think FatherShawn just volunteered to join the A team guys!

(that's how we joined).

I wasn't aware of changes to the relationship function but just a couple of points based on the article

Quote
You also have to call civicrm_contact_get method instead of search which has been deprecated.

Actually you don't 'have to' but we certainly recommend you do. We are currently discussing the best way to move onto APIv3 and it's highly likely APIv2 will be untouched but support will be phased out.

This issue highlights the fact that the API is frequently a portal to the underlying database / code and the fix is to improve our testing to the point where nothing sneaks by us. Or at least improve it as much as we have resources to do
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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Missed 3.2 API changes
November 10, 2010, 02:26:04 am
Welcome Father Shawn, always nice to have a new 'volunteer'! Yes, we should have a possibility to register as an API user so you can be informed of API changes. How would you prefer to go about that?
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Missed 3.2 API changes
November 10, 2010, 06:43:16 am
Quote from: Eileen on November 10, 2010, 12:41:07 am
I think FatherShawn just volunteered to join the A team guys!

(that's how we joined).

Great - opened my mouth!  ;)

What if we keep it simple and create a page at the top of CiviCRM Public APIs to function as a public "change log" to display changes in the API from the previous stable version of CiviCRM?  Interested persons can "watch" the page and thereby be informed of changes.
Lead Developer, C3 Design.
Twitter: @FatherShawn

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Missed 3.2 API changes
November 11, 2010, 12:21:40 am
That is a good first step, FatherShawn! I also think it is useful if people can register as an API user, so we have a list of email addresses that we can use to:
  • ask for feedback and opinions
  • inform in advance of upcoming changes and deprecations
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Missed 3.2 API changes
November 11, 2010, 01:34:58 am
the latter could be done with a mailing groups' sign-up using block civicrm on the site  :P
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Missed 3.2 API changes
November 11, 2010, 04:34:14 am
Quote from: peterd on November 11, 2010, 01:34:58 am
the latter could be done with a mailing groups' sign-up using block civicrm on the site  :P

I think that is a fine idea!  Who has the site privileges to set it up?
Lead Developer, C3 Design.
Twitter: @FatherShawn

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Missed 3.2 API changes
November 16, 2010, 10:08:53 am
Hi,

For those that didn't participate in the various emails exchange that this post started:

1) Please register yourself/your site if you are using the api. You have an option "keep me informed about the dirty technical details" (I'm paraphrasing, not sure what I put anymore ;). We'll try to update you *before* introducing an incompatible change in the API.

http://civicrm.org/civicrm/profile/create?reset=1&gid=15

2) Check if the api tests are covering the way you use the API and your parameters and if not, add this test (welcome to the new volunteer in the A team !)
if it isn't there, it won't be identified as a regression if something changes

There is a QA/test forum and IRC if you need help on how to create test and run them

3) Michal did admit being guilty of having seen that the tests failed (regression identified), but did change the parameters in the tests, instead of  "do something" so the API works both with the new param (eg. array) and the old one (eg string) for the home_URL. Or at least inform about the planned change

Next time I'm in Poland, I'm going to do terrible things to him on your behalf ;)

He thought about being able to spot these regressions (in the case covered by unit tests) by doing some magic with svn and diff the changes between the previous version and this one.

@Michal, did it work ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Missed 3.2 API changes
November 16, 2010, 10:12:39 am
Oh no, don't make him eat Marmite!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Missed 3.2 API changes

This forum was archived on 2017-11-26.