Search the web
Sign In
New User? Sign Up
yws-geo · Yahoo! Geo Developer Community
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Backwards-incompatible API change   Message List  
Reply | Forward Message #33 of 67 |
Re: Backwards-incompatible API change

We apologize for introducing a regression bug in our JSON response for
the places collection and causing a disruption of your application.
The place elements should be part of the place array and not part of
the places associative array. The proper way to access a place in a
collection is using result[`places'][`place'][i]. We will fix this
bug in the next release of the API. Since the bug fix will restore
the original behavior, it will also break your client-side fix. We
suggest that you first look for a place array in the JSON response,
and if one is not returned, then use your client-side fix to find the
place elements.

Bug releases are expected to be backward-compatible, and not require a
version bump, as was the case here. We fixed a bug dealing with the
element names containing the URI and language values, and
unfortunately caused a new issue which was not covered by our
regression tests; we have since updated our test suite to ensure that
it does not recur.

While we cannot always share with you upcoming features and bug fixes,
we will add release notes to our API documentation at
http://developer.yahoo.com/geo/guide, and will post messages on
yws-geo informing users of new releases. We value your interest in
GeoPlanet, and want to provide the best support possible.

Eddie Babcock
Y! Geo

--- In yws-geo@yahoogroups.com, "Aral Balkan" <aral@...> wrote:
>
> Hi guys,
>
> Could you please _at least_ give us some notice when making an API
change that is not
> backwards compatible (or can someone please give me a feed I can
subscribe to to get
> notified of such changes if there is one?)
>
> I just realized that you removed the 'place' array from the JSON
object returned from
> places.q() calls (e.g., of form
http://where.yahooapis.com/v1/places.q('city
> name');count=0?format=json) and that the returned places object now
has the place
> indices as strings.
>
> This requires code to be changed from, for example,
result['places']['place'] to
> result['places'] and also requires that numeric indexed loops be
changed to use string
> indices.
>
> The net result was that it started causing 500 errors on my live app.
>
> Also, since you've got a version string in there, my expectation
would be that the API
> would _not_ change and such a change would be rolled out as /v2/ etc.
>
> Where can I find out about such API changes in the future before
they happen and are you
> planning on similar changes in the future?
>
> Thanks,
> Aral




Tue Jul 1, 2008 12:41 am

edbabcock
Offline Offline
Send Email Send Email

Forward
Message #33 of 67 |
Expand Messages Author Sort by Date

Hi guys, Could you please _at least_ give us some notice when making an API change that is not backwards compatible (or can someone please give me a feed I...
Aral Balkan
aralbalkan
Offline Send Email
Jun 28, 2008
7:45 pm

We apologize for introducing a regression bug in our JSON response for the places collection and causing a disruption of your application. The place elements...
edbabcock
Offline Send Email
Jul 1, 2008
12:41 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help