Skip to content

26 pathways are still on metadata v1 and don't appear on the site #978

Description

@jacobvjk

Found while migrating the timeseries to v2 (#974).

The problem

The app loads only v2 metadata (src/data/pathwayMetadata.ts). A file still on pathwayMetadata.v1.json is skipped silently; the dev server only logs a count. 26 pathways are in that state, so they're missing from search, cards and comparison:

Publisher Pathways
NGFS (7) B2DS, CP, DT, FW, LD, NDC, NZ2050 (2024)
EREA / DEA (5) GG, GT, NZ, NZPLUS, VN-BASELINE (2024)
UN SDSN / ClimateWorks (7) Malaysia: EP, MAP, MAP1; Philippines: MAP1, MAP2, OEP, SEP (2024)
TransitionZero (4) BAU, EBAU, ISG, REGI (2024)
CGS / IESR (2) 1.5, BAU (2024)
UTS-ISF (1) OECM (2024)

TransitionZero and UTS-ISF also have timeseries, which #974 moved to v2, so their benchmark data is ready but their pathways don't appear.

Options

  1. Codemod: scripts/codemod-v1-to-v2.ts (from v2 schema + data codemod #858). It is mechanical, but it scaffolds coreDrivers as null and scopes every key feature at the widest level, so the result needs review.
  2. Workbook import: add the pathways to pathway_data_prepared.xlsx and import them with scripts/import-pathway-data.ts, like the 24 already imported. This gives authored v2 content (scoped key features, core drivers, dependencies, data availability) but is authoring work.

A codemod first, with the workbook replacing it later, would make the pathways visible again quickly. That's the same approach #974 took for timeseries. Either way, npm run schema:check will catch problems: scoped geography must be declared, and NGFS still has the empty region memberships tracked in #801.

Related: #858, #860, #915.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions