mysociety / theyworkforyou

Keeping tabs on the UK's parliaments and assemblies
http://www.theyworkforyou.com/
Other
224 stars 50 forks source link

Switch XML import from public whip to twfy-votes #1741

Closed ajparsons closed 7 months ago

ajparsons commented 7 months ago

TheyWorkForYou imports the alignment scores between representatives and policies through an XML file per policy, with a line per MP. This stores this in a big key lookup rather than a specific table.

Twfy-votes replicates the current XML from public whip using the same data. In principle, just changing the URL reference should feed in the new alignment information.

Currently this mirrors the public whip export in naming conversions (dream MP etc), and XML. We have the option of changing both ends if that makes sense at this point. A new JSON endpoint would be easy to make in twfy-votes, but it seems like there’s little benefit in making a big change here.

dracos commented 7 months ago

See https://github.com/mysociety/theyworkforyou/issues/1743 and should it be combined with that.

ajparsons commented 7 months ago

Merging