Skip to content

Add first_field_event to well details response#662

Merged
jirhiker merged 2 commits into
stagingfrom
first_field_event
Apr 21, 2026
Merged

Add first_field_event to well details response#662
jirhiker merged 2 commits into
stagingfrom
first_field_event

Conversation

@jeremyzilar

Copy link
Copy Markdown
Contributor

The field_events query returns the 25 most recent events sorted newest-first. For wells with many visits the oldest event falls outside that window, making it impossible to retrieve first-visit participants from the paged list.

This adds a separate targeted query that always fetches the single oldest field event (with participants) and returns it as first_field_event alongside the existing paged field_events list.

jeremyzilar and others added 2 commits April 21, 2026 11:53
The field_events query returns the 25 most recent events sorted newest-first.
For wells with many visits the oldest event falls outside that window, making
it impossible to retrieve first-visit participants from the paged list.

Adds a separate targeted query that always fetches the single oldest field
event (with participants) and returns it as first_field_event alongside the
existing paged field_events list.
@jeremyzilar jeremyzilar requested a review from jirhiker April 21, 2026 16:06
@jeremyzilar jeremyzilar self-assigned this Apr 21, 2026
@jeremyzilar jeremyzilar added the enhancement New feature or request label Apr 21, 2026
@jirhiker jirhiker merged commit c66d10d into staging Apr 21, 2026
6 checks passed
@jirhiker jirhiker deleted the first_field_event branch April 21, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants