Repository navigation
docs(wqp): investigate inconsistent wqp source values across layers (DIE-377) - #157
Merged
Merged
Conversation
…DIE-377) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3FzinCc17iLNCUSiwc3
|
Your pull request is automatically being deployed to Dagster Cloud.
|
… note (DIE-377) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3FzinCc17iLNCUSiwc3
jirhiker
marked this pull request as ready for review
November 18, 2026 23:06
chasetmartin
requested changes
Nov 19, 2026
chasetmartin
left a comment
Contributor
There was a problem hiding this comment.
Makes sense. Please update the plan with a list of proposed implementation tickets (general) that I can use to populate the backlog for further refinement.
…ckets (DIE-377) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RzW3FzinCc17iLNCUSiwc3
chasetmartin
approved these changes
Nov 20, 2026
chasetmartin
left a comment
Contributor
There was a problem hiding this comment.
lgtm, I will create Jira tickets based on this doc once merged.
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
Investigation for DIE-377. This adds
docs/wqp-source-naming.md, which confirms the bug, maps each product layer to thesourcevalue it writes, recommends a fix, and lists proposed implementation tickets. There are no code changes.Findings
WQPSiteTransformerwritesWQP/<ProviderName>.WQPAnalyteTransformerandWQPWaterLevelTransformerwriteWQP, becauseParameterTransformer._transformsetssourcefromsource_tag, not fromsite_record.source. WQP is the only connector where these two differ.WQP.WQP/<provider>.WQP:<id>in one layer,WQP/NWIS:<id>in another), so joining layers on feature ID misses every WQP well.source.idkeeps the reporting agency. It is WQP'sMonitoringLocationIdentifierunchanged, which starts with the agency's code (USGS-323018103310702,21NMEX-42RGRAND004.1).Recommendation
Write
source = "WQP"in every layer (option A in the doc). It matches the registry tag, makes a plainsource=WQPfilter work in every layer, and changes IDs only in the 17 site-derived layers.Proposed implementation tickets
The doc lists six. Tickets 1–3 should ship together so the ID change happens once.
source = "WQP"for WQP sites, and check real station IDs.sourcemust match for every connector.Testing
Doc-only change. I ran the three WQP transformers on a stub NWIS-provided station: the site record has
source = WQP/NWISand both observation records haveWQP. The ID-prefix examples come from WQP's public station pages;waterqualitydata.uscouldn't be reached from the session that wrote this.🤖 Generated with Claude Code
https://claude.ai/code/session_01RzW3FzinCc17iLNCUSiwc3