-
Notifications
You must be signed in to change notification settings - Fork 4
Member responses are inconsistent in the data they return #243
Comments
@ndawg thanks for this - it's a big effort, and you're right, we should standardize things better. Sounds like something we can do for a V2 version. |
I agree v2 is probably a better opportunity to overhaul these responses. For now, I think it's worth shoring up the responses from the "Get a Specific Member" in particular, which seems like it should return all possible information. So, the changes required:
It would be nice to include their current retiring status ( Also, it looks like |
@ndawg Seems reasonable. I would note that, for "Get a Specific Member", |
@dwillis interesting about the |
@ndawg I've started on this - we've deployed an update to "Get a Specific Member" responses and updated the example. |
@dwillis for listing members, what do you think about including a This isn't necessarily a breaking change but would help organize things really well. Just an idea - having the information there at all is already miles better! |
@ndawg let me check into it - I guess my first thought would be that the list of members includes everyone who has served in a given congress, even if they are not current members, so that would mean we'd need to figure out how to treat a |
I haven't had too much time to look into this more, but I did go ahead and update the table. I think there might be a few inaccuracies (not sure about Note that this is just comparing the List of Members and Get a Specific Member endpoint for now.
|
Here's a more thorough and well-vetted table, again only comparing the list and get methods, including all the sub-properties of the
|
Of the following endpoints:
The data present for each member returned is not very consistent, with certain ommissions that don't seem to make too much sense. I'm not sure of the best way to communicate all of these discrepancies, but here's my attempt:
Some notes to explain the warning signs:
id
ismember_id
in 2 onlyparty
iscurrent_party
in 2 onlytwitter_account
istwitter_id
in 4 onlyyoutube_account
isyoutube_id
in 4 onlystart_date
isbegin_date
in 5 onlytitle
isrole
in 4 onlyThere are a few fields omitted from the second return that are present in the subfield
roles
- these values are noted with ✳. In addition, theroles
field contains the following values that the first response does not include at all:at_large
,bills_sponsored
, andbills_cosponsored
.Other than this, it seems like a lot of the missing information could be included in the various responses. If you'd like me to be more thorough about what I think needs to be added in certain places, I can do that too, but it seems like it's all over the place at the moment.
The text was updated successfully, but these errors were encountered: