Skip to content
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

Postcode field #1500

Merged
merged 9 commits into from
Mar 12, 2025
Merged

Postcode field #1500

merged 9 commits into from
Mar 12, 2025

Conversation

4c0n
Copy link
Contributor

@4c0n 4c0n commented Mar 12, 2025

Description

We got a request to add postcode field to the location output and to be able to sort signals by that postcode.
Currently the postcode is stored inside a JSON field (address) and inside a text field (address_text). However that situation is unfortunately not very reliable and not very optimal for things like sorting/ordering.

This PR adds an optional postcode field to the location model, makes sure it can be found in the list endpoint's output and allows ordering using that field. Nothing has been changed to the address and address_text fields to remain backwards compatible.

@4c0n 4c0n marked this pull request as ready for review March 12, 2025 15:16
@4c0n 4c0n merged commit 7d56382 into main Mar 12, 2025
3 checks passed
@4c0n 4c0n deleted the feat/postcode-field branch March 12, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants