mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Implement Popolo Event, so that memberships can be related to a legislative_period #142

Open jpmckinney opened 9 years ago

jpmckinney commented 9 years ago

Follows from this Popolo discussion.

A very common question is "Who are the elected officials for this legislative term?" This can currently be done in PopIt by comparing the start date of a membership with external knowledge of the start and end date of a legislative term.

Popolo now has an Event class to model that external knowledge of a legislative term, and it will add a legislative_period property to Membership to relate a membership to a legislative term, which is useful in cases where you don't know precise start and end dates, but you do know the relationship between members and terms.