-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove cancelled election metadata #1685
Comments
WhoCanIVoteFor is not the only consumer of this data. If you remove it, WhereDoIVote will not be able to display info about cancelled and uncontested polls. |
@chris48s You're right about uncontested elections, but since #426 we expose Metadata was designed as a flexible way to deal with all the edge cases. It's still useful for that, but we've learnt enough about uncontested polls now to know what we want to say and how we want to deal with them. There's still a challenge in that YNR is the first DC product to know that a poll is uncontested: since DemocracyClub/yournextrepresentative#1486 we calculate uncontested after the ballot is locked. We need a way to feed this back into EE, and at the moment this happens manually by Peter adding an "uncontested" metadata object. This works...sort of, but what we really want is a boolean on the This also means we can use metadata in addition to uncontested elections, for example to add election specific context. The check list above should also include "add |
Yes. If you're not going to consume it from If you're going to change the way it is exposed in EE, as well as changing how WDIV consumes that it its own web app, you'll also need to consider how it is (re-)exposed via the WDIV API and the knock-on effect to the devs.DC API: https://github.com/DemocracyClub/UK-Polling-Stations/blob/42dd95c23c128e9a2b8d3ac13281a6c35c78b2bf/polling_stations/apps/api/postcode.py#L110 etc |
Ref DemocracyClub/WhoCanIVoteFor#1390
a) not repeat the existing messages in WCIVF and
b) only add metadata in exceptional circumstances
The text was updated successfully, but these errors were encountered: