Skip to content

BDMS-876: Projects view API (well counts and groups filter)#722

Open
jeremyzilar wants to merge 1 commit into
stagingfrom
BDMS-876-projects-view
Open

BDMS-876: Projects view API (well counts and groups filter)#722
jeremyzilar wants to merge 1 commit into
stagingfrom
BDMS-876-projects-view

Conversation

@jeremyzilar

Copy link
Copy Markdown
Contributor

Summary

  • Adds well_count to group list and GET responses for the Projects page
  • Adds virtual groups filter and sort on the water-well list so wells can be scoped by project
  • Eager-loads group associations on well list queries

Test plan

  • uv run pytest tests/test_group.py tests/test_thing.py -k "well_count or groups"
  • GET /group returns well_count per project
  • GET /thing/water-well?filter=... filters by linked project id via groups eq
  • Sort by groups returns 200

Notes

  • Open question: should well counts include all group types or only project-like groups?
  • Merge before or with the matching OcotilloUI PR

Groups list responses now include well counts, and the wells list can filter and sort by linked projects through the virtual groups field.
@jeremyzilar jeremyzilar requested a review from jirhiker June 13, 2026 18:24
@jeremyzilar jeremyzilar self-assigned this Jun 13, 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.

1 participant