Skip to content

Conversation

@andersy005
Copy link
Member

@github-actions github-actions bot added the api label Dec 12, 2025
Copy link
Member

@katamartin katamartin left a comment

Choose a reason for hiding this comment

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

looks great to me! maybe @Shane98c can confirm the new param is working with his branch locally?

@Shane98c
Copy link
Member

Working great! One request tho: kata and I were chatting this morning about different filter patterns in the UI that made us want to reach for a pattern more like how the is_compliance setup works so we can filter for projects without geom! would that be easy to swap to? Apologies for not asking for this earlier!

@andersy005
Copy link
Member Author

made us want to reach for a pattern more like how the is_compliance setup works so we can filter for projects without geom! would that be easy to swap to? Apologies for not asking for this earlier!

yes, this is very doable and straightforward to implement

@andersy005
Copy link
Member Author

@Shane98c, now the geography parameter works like is_compliance

# Projects with boundaries
GET /projects/?geography=true

# Projects without boundaries  
GET /projects/?geography=false

# All projects (no geography filter)
GET /projects/

# Credits from projects with boundaries
GET /credits/?geography=true

# Credits from projects without boundaries
GET /credits/?geography=false

Copy link
Member

@Shane98c Shane98c left a comment

Choose a reason for hiding this comment

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

perfect, thanks!!

@andersy005 andersy005 merged commit b0a3ff1 into main Dec 12, 2025
5 checks passed
@andersy005 andersy005 deleted the add-geography-filter branch December 12, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add geography filter to query endpoint

4 participants