Skip to content

Comments

fix: ensure distinct results in API queries#371

Closed
mhieta wants to merge 1 commit intomainfrom
seer/fix/api-distinct-id
Closed

fix: ensure distinct results in API queries#371
mhieta wants to merge 1 commit intomainfrom
seer/fix/api-distinct-id

Conversation

@mhieta
Copy link
Contributor

@mhieta mhieta commented Jan 26, 2026

Description

Ensure distinct results in API queries.

Context

PL-214

@mhieta mhieta requested a review from a team as a code owner January 26, 2026 07:20
@mhieta mhieta force-pushed the seer/fix/api-distinct-id branch from f5c3214 to 4613477 Compare January 26, 2026 07:25
@sonarqubecloud
Copy link

@azure-pipelines
Copy link

PALVELUKARTTA-API branch is deployed to platta: https://palvelukartta-api-pr371.dev.hel.ninja 🚀🚀🚀

Copy link
Contributor

@voneiden voneiden left a comment

Choose a reason for hiding this comment

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

Not compatible with filters that change order_by to something else than id. For example distance filter sets order_by("distance")

This results in a ProgrammingError when filters are combined

https://palvelukartta-api-pr371.dev.hel.ninja/v2/unit/?lat=60&lon=25&distance=100000000&service_node=6

https://city-of-helsinki.sentry.io/issues/91057892/

(No error in test env https://palvelukartta.api.test.hel.ninja/v2/unit/?lat=60&lon=25&distance=100000000&service_node=6 )

@mhieta
Copy link
Contributor Author

mhieta commented Jan 26, 2026

Closing this PR as a duplicate to #373

@mhieta mhieta closed this Jan 26, 2026
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