Skip to content

Fix/typecheck index gen#529

Merged
AlexAxthelm merged 4 commits intomainfrom
fix/typecheck-index-gen
Nov 6, 2025
Merged

Fix/typecheck index gen#529
AlexAxthelm merged 4 commits intomainfrom
fix/typecheck-index-gen

Conversation

@AlexAxthelm
Copy link
Collaborator

Supersedes #521

addresses typecheck issues without adding the (noisy on infrequent update) schema to the file

@AlexAxthelm AlexAxthelm self-assigned this Nov 6, 2025
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Expected version change and release notes:

1.5.0-dev.21 (v1.5.0-dev.20...fix/typecheck-index-gen ) (2025-11-06T10:05 UTC)

Fixes

  • types: do not include schema object in index type (6ec7e93)

Continuous Integration and Delivery (CI/CD)

  • typescript: Allow node TS config to parse index (2e42311)

Tests

  • index: remove schema from timeseries index tests (6992317)

Other

  • data: regenerate timeseries index (adb5426)

@AlexAxthelm AlexAxthelm marked this pull request as ready for review November 6, 2025 10:05
Copy link
Collaborator

@jdhoffa jdhoffa left a comment

Choose a reason for hiding this comment

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

Very happy with this approach. I wasn't sure if you wanted schema in there for some particular reason 😊

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the schema metadata field from the timeseries index structure. The schema field (containing version and generatedAt properties) was previously included in the generated index but is no longer needed.

Key changes:

  • Removed schema property from the TimeseriesIndex type definition in both the generator script and generated type file
  • Updated the build script comment to reflect that only byPathway and byDataset are written
  • Removed schema property from test fixtures to align with the updated structure
  • Added TypeScript composite project configuration to tsconfig.node.json for build caching and included the generated index file

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
scripts/build-timeseries-files.ts Updated type definition and documentation comment to remove schema field from generated output
src/data/index.gen.ts Removed schema property from TimeseriesIndex type definition
src/utils/timeseriesIndex.test.ts Removed schema property from test fixture to match updated type
tsconfig.node.json Added composite project settings and included generated index file in compilation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

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

@AlexAxthelm AlexAxthelm merged commit eca59c2 into main Nov 6, 2025
24 of 25 checks passed
@AlexAxthelm AlexAxthelm deleted the fix/typecheck-index-gen branch November 6, 2025 10:09
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