API call to return profile managers returns wrong results in some cases

Started by Randy Stebbing on Thursday, April 26, 2012
Showing all 9 posts
4/26/2012 at 3:08 PM

This profile should have 328 managers but the API is only returning 1.

Louis II the Stammerer, king of the West Franks

The tail end of the web address api call that I'm using is formatted like this:
........./api/profile-1693391?fields=managers

Here is a second profile with the same issue. It should return 100 managers but it only is returning one.

Berchtold I, Margrave in the Bavarian Nordgau

The tail end of the web address api call that I'm using is formatted like this:
.................api/profile-103442407?fields=managers

Other profiles work as expected and return the expected number of managers.

--Randy

4/26/2012 at 5:02 PM

they are both locked profiles thats why probbaly

4/26/2012 at 5:34 PM

Jason,

Good catch. I've verified that that is indeed the issue. Hopefully the programmers can get that fixed as I don't think that a curator lock on a profile should selectively disable API queries.

I'm getting tired of manually maintaining the index for the http://www.geni.com/projects/Mega-Merge/10927 project so I wrote up a script that will create the wiki markup based on whatever profiles are included in the project. The script works but is unusable because of this bug.

4/26/2012 at 7:23 PM

It's not a bug, we suppress the managers list when a master profile is locked (because the managers are of no help -- they can't edit or merge it any more than anyone else who's not a curator)

4/26/2012 at 9:12 PM

Mike Stangel Thanks for the reply. If this decision could be changed it would sure help me. Also if a viewer visits a locked profile they can see a list of all managers so why suppress the same list via the API?

4/27/2012 at 2:27 AM

My mistake, I didn't realize we were talking about a discrepancy between the API and the web site. I'll talk to the API engineers about it.

4/27/2012 at 11:44 PM

Louis II "the Stammerer" of France my 32nd great grandfather.

4/27/2012 at 11:45 PM

Berthold I (~915~980) Markgraf im bayerischen Nordgau is my 28th great grandfather.

Private User
11/8/2012 at 5:17 AM

BUMP: Managers are still not listed on locked profiles.
https://www.geni.com/api/profile-g2430192?fields=name,id,managers

Showing all 9 posts

Create a free account or login to participate in this discussion