Skip to content

Deprecate advance voting stations#635

Merged
GeoWill merged 3 commits intomasterfrom
deprecate-advance-voting-stations
Mar 25, 2026
Merged

Deprecate advance voting stations#635
GeoWill merged 3 commits intomasterfrom
deprecate-advance-voting-stations

Conversation

@GeoWill
Copy link
Contributor

@GeoWill GeoWill commented Mar 19, 2026


GeoWill added 2 commits March 19, 2026 12:38
I've left the advance voting information in the fixtures for now to
verify the code does what we want.
+ `date`
+ `open`
+ `close`
+ `advance_voting_station`: (object, nullable) - Deprecated. Always null.
Copy link
Contributor Author

@GeoWill GeoWill Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to document it's existence? I thought 'yes', but don't mind. This follows what we did with custom finder.

Errors will be reported using HTTP status codes. The body of the error will be formatted as valid JSON and will give a description of the error
</p></div><div class="ds-stack-smaller"><figure><figcaption>
Example error response</figcaption><pre>{ "detail": "Could not geocode from any source" }</pre></figure></div></div></div></div>
<code>cancelled</code> boolean:</p><ul><li><p><code>NO_CANDIDATES</code>: No candidates</p></li><li><p><code>EQUAL_CANDIDATES</code>: Equal candidates to contested seats</p></li><li><p><code>UNDER_CONTESTED</code>: Fewer candidates than seats</p></li><li><p><code>CANDIDATE_DEATH</code>: Death of a candidate</p></li></ul><h3>Previous Party Affiliations</h3><p>The <a href="https://www.legislation.gov.uk/wsi/2021/1459/made">Local Elections (Principal Areas) (Wales) Rules 2021</a> Statutory
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff is horrendous. But essentially This new line (2726) contains some of old line 2856 and some of oldline 2884 smooshed together.
It's currently deployed to dev so docs are visible at https://developers.environments.womblelabs.co.uk/api/v1/

+ postcode: (string) - Postcode for this polling station
+ address: `Earlswood Social Club, 160-164 Greenway Road, Rumney` (string) - Address for this polling station
+ `advance_voting_station`: (object, nullable) - Deprecated. Always null.
+ `advance_voting_station`: (object, nullable) - Deprecated field. This will always be null.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use same text as custom finder

@chris48s
Copy link
Member

Yeah I think it is good to document that it is there, same as custom_finder 👍

@GeoWill GeoWill force-pushed the deprecate-advance-voting-stations branch from 428fc77 to d9eaac1 Compare March 25, 2026 09:25
@GeoWill GeoWill merged commit 550a512 into master Mar 25, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants