-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/pdct-1777-support-multiple-geos-in-get (#268)
* feat: WIP - update query to accomodate for multi geos related to a family * Added lazy load to prevent multiplicity * refactor: update subquery to aggregate geography values - remove commented out code * feat: update package in pyproject * fix: add back in default logging which was commented out in debugging * test: update unit tests for new geos field * chore: make the test errors verbose when running pytest * tests: update integration tests with new geo property on families model * refactor: rework geography filter on families search endpoint - Have had to rework this one slightly because the get_query function for families has been updated for multi geos, the query no longer returns a row with the geography table and family geo table joined. As a query for a family will return multiple rows if there are more than one geography associated - these are now aggregated into a list of geographies. Therefore the filtering would no longer work, i have flipped the script and included a subquery that retrieves families import ids associated with the geographies and then filters the query based on those. * test: add tests for multi geos in search endpoint * fix: remove breakpoint * refactor: duplicate query function and have search endpoint work as it does this is so we can progressively make the change and not risk breaking search * chore: update project version * test: update tests to include multi geos * chore: wrong project version * test: add missing geos from multi geos * chore: project version update? * fix: incorrect typing for geo subquery * chore: updte project version * chore: rectify this trunk error which was angry at sorting * fix: sorting * Fix imports * fix: fix sorting import error from trunk fmtter * chore: update project version --------- Co-authored-by: Osneil Drakes <[email protected]> Co-authored-by: Katy Baulch <[email protected]> Co-authored-by: Osneil Drakes <[email protected]>
- Loading branch information
1 parent
dd3e3ea
commit 3d2f936
Showing
10 changed files
with
234 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "admin_backend" | ||
version = "2.17.28" | ||
version = "2.17.29" | ||
description = "" | ||
authors = ["CPR-dev-team <[email protected]>"] | ||
packages = [{ include = "app" }, { include = "tests" }] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.