Enumerate the districts of a chamber?


#1

Currently the only way to get all the districts for a chamber in V2 is to walk the legislators. This fails when a seat is vacant or the legislator data is in error.

[Updated 13 December]
Consider adding a “posts” connection to OrganizationNodes, which is probably null for all organizations that aren’t chambers.

It’s a connection, not an array, because in the future I suspect that we may want a “currentHolders” member on PostNode to point at the legislators, and then an array might lead to corpulent responses (especially in the 400-member NH House).
[end update]

@james, let me know if you want a Github issue on this.


#2

an issue would be great :slight_smile:


#3

Github issue: https://github.com/openstates/new-openstates.org/issues/126