Skip to content

Version numbers for analyses - #1439

Draft
tim-at-topos wants to merge 7 commits into
tim/refactor-wasm-analysesfrom
version-numbers-for-analyses
Draft

Version numbers for analyses#1439
tim-at-topos wants to merge 7 commits into
tim/refactor-wasm-analysesfrom
version-numbers-for-analyses

Conversation

@tim-at-topos

@tim-at-topos tim-at-topos commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR implements a first draft of analysis versioning. Following the ideas from document-types, analyses can now defined versioned problem data and provide migrate functions to bring previous versions of problem data in existing notebooks up to date.

For now we simply hook in to migrateAnalysis in frontend/src/analysis/document.ts and manually declare which analyses have version numbers to track and upgrade. In order to do something better, I think we should wait until we can reimplement a bunch of the analysis frontend code using the API (#1347) and then consider splitting out analyses into a separate crate with its own associated wasm.

(The large diff size is mostly due to reorganising the ODE analyses into folders for each version and exporting only the current version, as well as cutting up mass_action.rs into the three conceptually distinct cases to make it a bit easier to read).

@tim-at-topos tim-at-topos added frontend TypeScript frontend and Rust-wasm integrations canary This is fine for now but won't be forever. labels Aug 28, 2026
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch 3 times, most recently from 9a6c933 to 1187068 Compare September 2, 2026 17:07
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch from 1187068 to 17ee273 Compare September 2, 2026 17:28
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch from 64a0f62 to 7b2e710 Compare September 2, 2026 17:46
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch 2 times, most recently from d80791c to 273a6bb Compare September 3, 2026 15:11
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch 2 times, most recently from 939456d to 384bce1 Compare September 3, 2026 16:44
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch 3 times, most recently from 2404efe to 4aab33f Compare September 3, 2026 17:40
@tim-at-topos
tim-at-topos force-pushed the version-numbers-for-analyses branch from 4aab33f to 19572e3 Compare September 3, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

canary This is fine for now but won't be forever. frontend TypeScript frontend and Rust-wasm integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant