mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

API Consumers need a way to track when candidates are merged together #264

Open jarofgreen opened 9 years ago

jarofgreen commented 9 years ago

There needs to be one consistent rule that always holds true that API Consumers can use to pick this up. They may be tracking data against IDs.

eg http://yournextmp.popit.mysociety.org/api/v0.1/persons/5895 and http://yournextmp.popit.mysociety.org/api/v0.1/persons/5239

At present, you can look through all version records and look in the ID field. If you see a different ID, then you know a merge happened.

mhl commented 9 years ago

@jarofgreen Thanks for raising this - I've created a ticket for what I think is the ideal solution: https://github.com/mysociety/popit-api/issues/132

In the mean time, to answer your questions:

TODO: