Skip to content

Derive PARAMETER_SOURCE_MAP waterlevels list from the registry (3.3)#105

Merged
jirhiker merged 1 commit into
chore/cleanup-tier2from
chore/cleanup-3-3
Jun 30, 2026
Merged

Derive PARAMETER_SOURCE_MAP waterlevels list from the registry (3.3)#105
jirhiker merged 1 commit into
chore/cleanup-tier2from
chore/cleanup-3-3

Conversation

@jirhiker

Copy link
Copy Markdown
Member

Tier 3 item 3.3 from docs/cleanup-todo.md. Stacked on #104 (base chore/cleanup-tier2). Merge order: #101#102#103#104 → this.

The WATERLEVELS entry of PARAMETER_SOURCE_MAP duplicated what the SOURCES registry already encodes — the sources with a waterlevel class. It's now derived:

WATERLEVELS: [s.key for s in SOURCES if s.waterlevel is not None],

PARAMETER_SOURCE_MAP moved below the registry so it can reference SOURCES. Analyte entries stay authored — they encode which analytes each agency actually reports, which can't be inferred from class wiring.

The derived list is identical (including order) to the previous hardcoded one; tests/test_source_registry.py still guards the registry↔map relationship.

No behavior change. Full suite 311 passed; dg check defs clean.

🤖 Generated with Claude Code

…y (3.3)

The waterlevels agency list duplicated what the registry already encodes — the
sources with a waterlevel class. It is now derived
(`[s.key for s in SOURCES if s.waterlevel]`); PARAMETER_SOURCE_MAP moved below
the registry so it can reference SOURCES. Analyte entries stay authored (they
encode which analytes each agency reports, not inferable from class wiring).

Derived list is identical (incl. order) to the previous hardcoded one; the
test_source_registry consistency test still guards the relationship. Full suite
(311) + dg check defs clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

Your pull request is automatically being deployed to Dagster Cloud.

Location Status Link Updated
die-orchestration View in Cloud Jun 30, 2026 at 01:24 AM (UTC)

@jirhiker jirhiker merged commit 93c6753 into chore/cleanup-tier2 Jun 30, 2026
3 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.

1 participant