Skip to content

fix: Power timeseries technologies match the taxonomy - #979

Merged
jacobvjk merged 3 commits into
epic/v2from
fix/timeseries-power-technologies
Oct 7, 2026
Merged

jacobvjk merged 3 commits into
epic/v2from
fix/timeseries-power-technologies

Conversation

@jacobvjk

@jacobvjk jacobvjk commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #977. Stacked on #974, which introduces the v2 timeseries schema. Independent of #975 and #976.

A Power row's technology has to satisfy two lists at once: the all-sector enum and the schema's Power list. The Power list had geothermal, battery and hydrogen, which the all-sector enum lacks, so those values could never validate.

Changes:

  • The Power list is now exactly the Power technology keys in src/utils/timeseriesTaxonomy.ts, which the plots and CSV download look every row up in.
  • geothermal and energyStorage are added to the all-sector enum. energyStorage follows cookbook decision 0020 and matches the Energy storage segment.
  • battery and hydrogen are dropped.
  • A new src/schema/pathwayTimeseries.v2.test.ts keeps the schema and taxonomy lists in agreement, and checks that each Power value is in the all-sector enum.

No current data uses any of these values, so no data files change. This should land before the first prep-repo import, so geothermal and storage series can come through.

Scope: v2 only. v1 timeseries is retired: no v1 files remain and the importer accepts only v2, so its lists are deliberately left unchanged (formal retirement: #981).

Checked: the new tests fail without the fix and pass with it. Full suite, lint, schema:check and type generation all pass.

🤖 Generated with Claude Code

A Power row's technology must satisfy both the all-sector enum and the
Power list in the schema's if/then. The Power list had geothermal,
battery and hydrogen, which the all-sector enum lacked, so they could
never validate (#977).

The Power list is now exactly the taxonomy's Power technology keys,
which the plots and CSV download resolve every row against: geothermal
and energyStorage (cookbook decision 0020; matches the Energy storage
segment) are added to the all-sector enum, battery and hydrogen are
dropped. A schema test keeps the two lists in agreement. No current data
uses any of the changed values.

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

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-979.westus2.2.azurestaticapps.net

…chnologies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/schema/pathwayTimeseries.v2.test.ts
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-979.westus2.2.azurestaticapps.net

…chnologies

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

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-979.westus2.2.azurestaticapps.net

Base automatically changed from feat/timeseries-v2-schema to epic/v2 October 6, 2026 16:47
@jacobvjk
jacobvjk requested a balanced review from Copilot October 6, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The actively supported v1 schema still retains the taxonomy mismatch identified by the linked issue.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Aligns v2 Power timeseries technologies with the application taxonomy.

Changes:

  • Adds geothermal and energy storage support.
  • Removes obsolete battery and hydrogen values.
  • Adds schema-taxonomy consistency tests.
File Description
src/​types/​pathwayTimeseries.v2.d.ts Updates generated technology types.
src/​schema/​pathwayTimeseries.v2.test.ts Adds taxonomy and validation tests.
src/​schema/​pathwayTimeseries.v2.json Aligns Power technology enums.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/schema/pathwayTimeseries.v2.json
@jacobvjk
jacobvjk merged commit 4e02916 into epic/v2 Oct 7, 2026
19 of 20 checks passed
@jacobvjk
jacobvjk deleted the fix/timeseries-power-technologies branch October 7, 2026 09:16
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.

3 participants