import v2 data - #935
Draft
AlexAxthelm wants to merge 4 commits into
Draft
Conversation
Add scripts/import-pathway-data.ts, which reads the working Excel workbook (pathway_data_prepared.xlsx) and writes real v2 pathway metadata JSON, superseding the one-shot codemod-v1-to-v2.ts (#858). It reads the draft_* sheets (parameterized via SHEET_PREFIX and the --sheet-prefix flag, ready for the final pathway_* sheets), maps each row to its target file by publisher + scenario code + country, and emits scoped keyFeatures, coreDrivers, dependencies, and geography (with region->ISO memberships) that satisfy schema:check and validateScopedEntries. IEA WEO-2025 rows create new files and keep the 2024 ones; every other row updates its file in place. Anything that cannot be mapped cleanly is reported rather than written, so the run never produces schema-invalid output. Adds exceljs as a dev dependency. The regenerated data files are committed separately. Part of #860. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Draft
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
Related issues
Closes:
Testing
Checklist