Repository navigation
Ginni/feature/6 project site endpoints - #18
Merged
Merged
Conversation
Ginni-2007
marked this pull request as draft
October 25, 2026 21:19
Ginni-2007
marked this pull request as ready for review
October 29, 2026 00:42
FakeDeepLearner
requested changes
Nov 1, 2026
FakeDeepLearner
left a comment
Collaborator
There was a problem hiding this comment.
Please take a look at the feedback I left in #20, specifically the section about fixtures, as it also applies to you
FakeDeepLearner
previously approved these changes
Nov 2, 2026
FakeDeepLearner
left a comment
Collaborator
There was a problem hiding this comment.
Looks great now, thanks!
Ginni-2007
dismissed
FakeDeepLearner’s stale review
November 2, 2026 03:55
The merge-base changed after approval.
FakeDeepLearner
self-requested a review
November 3, 2026 00:32
FakeDeepLearner
previously approved these changes
Nov 3, 2026
FakeDeepLearner
left a comment
Collaborator
There was a problem hiding this comment.
Looks great, thanks!
Ginni-2007
dismissed
FakeDeepLearner’s stale review
November 3, 2026 00:33
The merge-base changed after approval.
Ginni-2007
dismissed
FakeDeepLearner’s stale review
November 3, 2026 02:23
The merge-base changed after approval.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Closes #6
Adds the two read endpoints the app uses before a worker records anything
GET /api/projects/: lists active projectsGET /api/projects/<id>/sites/: lists a project's sites, each with its region nested; usesselect_related("region")so it's one query regardless of how many sitesseed_projectsmanagement command: 5 Honduran regions (department capitals, coordinates from Wikipedia), 1 active and 1 closed project, 5 farms. Usesget_or_create, so it's safe to run more than oncebackend/tests/test_projects.pyHow to test it
Checklist
cd backend && python -m pytest).env, credentials, or LAN IP in the diffNotes for the reviewer