-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add multi geographies to search API #266
Conversation
0889ae6
to
31dc0dd
Compare
7a61af6
to
cdcb565
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple notes to hopefully make the review easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds the ability to search multiple geographies via the API, but doesn't add support for multi geographies in the admin backend (slight misinterpretation of the ticket perhaps - but this work still needed doing so I'm going to link the right ticket and merge this) :)
Description
Part of https://linear.app/climate-policy-radar/issue/PDCT-1404/admin-service-support-multiple-geographies
Allows the API to receive geography as an list i.e.
geography=zambia&geography=zimbabwe
.I've used the built in parsers for the geography qs - which breaks convention, but avoids us having to add new parsers to
get_query_params_as_dict
.As a secondary refactor to this PR - we could lean heavier into that and be more explicit about out URL params.
Proposed version
Type of change
How Has This Been Tested?
Integration tests