Skip to content

Conversation

@jirhiker
Copy link
Member

Why

This PR addresses the following problem / context:

  • OGC wells responses needed to expose well casing materials, screens, and purposes.
  • OGC property filtering needed to support relationship-backed fields for wells.
  • README examples needed to reflect the new filter options.

How

Implementation summary - the following was changed / added / removed:

  • Added well_purposes, well_casing_materials, and well_screens to OGC wells feature properties in api/ogc/features.py.
  • Added relationship-backed properties filters (well_purposes, well_casing_materials, well_screen_type) using EXISTS subqueries in api/ogc/features.py.
  • Added README examples showing the new filters in README.md.

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Tests: source .venv/bin/activate && set -a && source .env && set +a && pytest tests/test_ogc.pytions, workarounds, or follow-up work to note?_
  • Use bullet points here

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds OGC API - Features support to expose well data through standardized geospatial endpoints, including well purposes, casing materials, and screen information, with property filtering capabilities for relationship-backed fields.

Changes:

  • Added OGC API - Features endpoints (/ogc) with support for wells, springs, and locations collections
  • Implemented property filtering for relationship-backed fields (well_purposes, well_casing_materials, well_screen_type) using EXISTS subqueries
  • Added comprehensive test coverage for OGC endpoints and filtering capabilities

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_ogc.py New test file with comprehensive OGC API endpoint tests including landing page, conformance, collections, and various filtering scenarios
tests/conftest.py Added database permissions setup for app_read role to support OGC queries
core/initializers.py Registered the new OGC router in the application
api/ogc/schemas.py Defined Pydantic schemas for OGC API responses including collections, features, and conformance
api/ogc/router.py Implemented OGC API router with endpoints for landing page, conformance, collections, and feature items
api/ogc/features.py Core feature query logic with support for bbox, datetime, property, and CQL filters
api/ogc/conformance.py Declared conformance classes for OGC API - Features and CQL2 text support
api/ogc/collections.py Collection metadata and link generation for locations, wells, and springs
api/ogc/init.py Package initialization file
README.md Added documentation and usage examples for OGC API endpoints and filtering options

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 973a1099eb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 14, 2026 23:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings January 14, 2026 23:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 14, 2026 23:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 14, 2026 23:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 14, 2026 23:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 14, 2026 23:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings January 15, 2026 03:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

@jirhiker jirhiker merged commit 9f87ede into staging Jan 15, 2026
6 checks passed
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.

2 participants