DemocracyClub / yournextrepresentative

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

Match all ballots for an election when parsing multi-ward SOPN documents #1385

Open michaeljcollinsuk opened 3 years ago

michaeljcollinsuk commented 3 years ago

Issue and Steps to Reproduce

Taken from comments to #1375

So this is going to be a very rare case, but consider:

Suggested actions

Here's another idea that might solve other problems - because the problem I outlined might happen when we import from the spreadsheet too:

When matching pages, we always look at all ballots in the election (sibling ballots).

We then match each page to each ballot, but only store the pages matched against the OfficialDocument that's been uploaded.

This might end up as quite a big refactor, but it would mean that we don't need to worry about matching partial SOPNs at all.

VirginiaDooley commented 2 years ago

I think this is still an issue as seen with local.buckinghamshire.aylesbury-north-west.2021-05-06.