Repository navigation
Conversation
…products (DIE-404) Confirms that _pivot_by_well combines each analyte's own latest value, so hardness, water type, SAR, ion balance and WQI can compute from ions measured on different dates. Includes a reproduction and a recommended event-based fix with open decisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3G1jrDotQka8MrAyvpq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3G1jrDotQka8MrAyvpq
|
Your pull request is automatically being deployed to Dagster Cloud.
|
jirhiker
marked this pull request as ready for review
November 18, 2026 22:59
…ercion (DIE-404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3G1jrDotQka8MrAyvpq
chasetmartin
requested changes
Nov 19, 2026
chasetmartin
left a comment
Contributor
There was a problem hiding this comment.
Answered some of the outstanding questions. Please update accordingly, especially to update the list of implementation or follow up tickets needed. Once merged I will use that ticket list to build the backlog items. Thanks!
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3G1jrDotQka8MrAyvpq
chasetmartin
approved these changes
Nov 20, 2026
chasetmartin
left a comment
Contributor
There was a problem hiding this comment.
lgtm. I can use the doc to create Jira implementation tickets after the merge.
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.
Summary
DIE-404 asked us to check whether the major chemistry layer mixes sampling dates across analytes, and to recommend a fix. It does. This PR adds the investigation, the recommendation, the decisions made in review, and the list of tickets to create. No product code changes.
Jira: DIE-404
Changes
docs/major-chemistry-sampling-events.md(new):_pivot_by_welltakes each analyte's own latest value and never compares dates.suspect(CBE 59.5%), only because the dates are mixed.Recommendation in brief
_pivot_by_well: by then only each analyte's latest value is left. It can go one step earlier without new fetching, because each combine asset already loads the full per-observation timeseries (all_timeseries).date_measured). Each product names the ions an event must have. Pick the most recent event that has all of them. If none does, pick the event with the most of them and setevent_complete = false.sample_date,n_analytes_in_eventandevent_completeto major chemistry, hardness, water type, SAR and ion balance.Decisions (from review)
<analyte>_datestays for v1.1 alongsidesample_date, and is removed in a follow-up once the front end usessample_date.Tickets to create
DIE backlog (this repo):
sample_date,n_analytes_in_event,event_complete; keep<analyte>_date), with tests.<analyte>_datefrom the event-based products (blocked by 1, 2 and 7).Front-end backlog (Weaver W10):
sample_dateinstead of per-analyte dates (blocked by 1).Testing
59.5 suspect, as the doc states.uv run pytest tests/test_product_docs.py: 3 tests fail, and they fail the same way onmainwithout this change (test_every_linked_output_type_has_a_section,test_section_lists_its_products,test_registry_has_one_entry_per_backend_source).Risk and rollout
Follow-ups
tests/test_product_docs.pyalready fail onmainand need their own ticket.🤖 Generated with Claude Code
https://claude.ai/code/session_01RzW3G1jrDotQka8MrAyvpq