Comments (7)
I noticed similar when searching for M328AA - the only results shown are the MTW and WMC (not relevant this year) and the results don't show the GMCA Mayor (a live election).
Additionally, I've just searched for Manchester then Greater Manchester and it only tried to match on candidate names - perhaps first check if the search term matches a high-level Nominatim UK place name?
The only reliable and quick way I've come up with for finding the GM Mayoral election is to enter a candidate name that I already know, but obviously this option isn't available to most people searching for info about candidate names.
from yournextrepresentative.
(Here's a little triage, but I'm only a vaguely aware of how @symroe is handling all these new elections, so this is all a bit superficial.)
That postcode is used for this MapIt query: http://mapit.democracyclub.org.uk/postcode/cb21by
That only returns areas of type: CED
, CTY
, DIS
, DIW
, EUR
, WMC
, WMP
, EUP
and PDG
.
However, the elections you're expecting to be returned have different AreaType
s associated with them:
local.cambridgeshire.2017-05-04
has area types with names'CED'
and one that I assume is an error since its name is:''
mayor.cambridgeshire-and-peterborough.2017-05-04
has one area type with name'combined-authority'
The only one of those that can work with the code as it ias at the moment is CED
. That causes a lookup for an area with identifier unit_id:1277
(formed from format_code_from_area
) and type CED
. There's no such Area
, though - those with type CED
are: https://gist.github.com/mhl/f04d0930a9b506283adf18438be6a438
So it looks like there might be multiple things going wrong here :(
from yournextrepresentative.
from yournextrepresentative.
From memory, CEDs aren't straightforward wrt unique identifiers. CAs are, and their boundary data is available here
from yournextrepresentative.
I've deployed a change to the lookup code in the DC fork that uses our election service to lookup elections. That service has the new boundaries in, so we're able to return results for the missing elections now :)
from yournextrepresentative.
Looks fixed for the reported postcode:
https://candidates.democracyclub.org.uk/search?q=CB2+1BY
from yournextrepresentative.
I don't know why this says that I reopened this. I suppose I might have clicked "reopen" by accident, but I certainly didn't intend to!
from yournextrepresentative.
Related Issues (20)
- Why is the project abandoned? HOT 1
- Update install/setup docs to reflect settings now in database
- Make homepage more useful after an election has finished HOT 3
- Admin changes in /settings published in 'recent changes' on front page
- add candidacy wizard: you can get a 500 error by selecting a post that's locked HOT 1
- UK: inconsistent data: memberships associated with an election and a post, where the post is not associated with that election HOT 2
- fix old import scripts, so we don't crib bad code from them
- update django-allauth to cope with Facebook API deprecation HOT 1
- Update repo link HOT 1
- add the checks from candidates_fix_not_standing to check_constraints
- /recent-changes log should list and link to post HOT 1
- type="url" validation error is not shown on firefox HOT 2
- expose date of death as a field that can be edited
- Bulk add candidates: ability to see/add/amend Additional Name(s) inline HOT 4
- add a setting to control whether pages are indexed by Google or now
- Kenya: add a new Django app for kenya HOT 1
- audit all the current fields of SiteSettings
- Kenya: 500 error when trying to view Jacklyne Nekesa Nyongesa HOT 2
- maintain the list of candidates whose profiles are liable to vandalism in the database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yournextrepresentative.