Skip to content

πŸ“„ Add an upgrade guide for 0.1.x β†’ v1.0.0 migration#439

Merged
casenave merged 5 commits into
mainfrom
docs/406-upgrade-guide
Jun 5, 2026
Merged

πŸ“„ Add an upgrade guide for 0.1.x β†’ v1.0.0 migration#439
casenave merged 5 commits into
mainfrom
docs/406-upgrade-guide

Conversation

@xroynard

@xroynard xroynard commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Description

Adds an upgrade guide documenting how to migrate an existing code base from the 0.1.x series to v1.0.0, inspired by the structure of the Hydra upgrade guides (one section per version jump, change-by-change, with before/after examples).

The guide is built from the actual breaking changes introduced by the v1 prototype (#409) and the CHANGELOG.md:

  • Top-level imports: Dataset is no longer re-exported from plaid (import from plaid.containers.dataset); new Infos export; __version__ moved from plaid._version to plaid.version.
  • plaid.types: removed (Scalar, Field, TimeSequence, Feature, SklearnBlock, FeatureIdentifier, ArrayDType, IndexType) and added (ScalarDType, IndexArrayType, ScalarOrArray, ScalarOrArrayOrStr).
  • Removed modules: pipelines, post, several utils modules, examples.
  • ProblemDefinition: add_in/out_features_identifiers (and the set/get/constant variants) replaced by add_input_features / add_output_features; surface reduced to a compact pydantic model.
  • Storage / CGNS backend: removal of the constant/variable mechanism.
  • New in v1: plaid.infos, plaid.viewer.
  • A condensed section for users coming from an older 0.1.x release.

The page is wired into the zensical navigation (Overview > Upgrade guide) and a CHANGELOG.md entry was added.

Closes #406

Checklist

  • Typing
  • Documentation
  • Changelog
  • Tests
  • Coverage 100%

Note: documentation-only change. The rendered page / navigation will be validated by the docs CI.

Add docs/source/upgrade_guide.md documenting the breaking changes
introduced by the v1 prototype (PR #409): removed top-level Dataset
re-export, plaid.types alias changes, removed modules (pipelines, post,
several utils, examples), the simplified ProblemDefinition API, and the
CGNS backend constant/variable removal. Also lists new modules
(plaid.infos, plaid.viewer) and intermediate 0.1.x breaking changes.

Wire the page into the zensical nav and add a CHANGELOG entry.

Closes #406
@xroynard xroynard requested a review from a team as a code owner June 5, 2026 09:04
@xroynard

xroynard commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

You can see the result here : https://plaid-lib.readthedocs.io/en/docs-406-upgrade-guide/upgrade_guide.html

@xroynard xroynard added this to the version 1.0.0 milestone Jun 5, 2026
@xroynard xroynard self-assigned this Jun 5, 2026
@xroynard xroynard added documentation Improvements or additions to documentation nice to have labels Jun 5, 2026
@casenave

casenave commented Jun 5, 2026

Copy link
Copy Markdown
Member
image


PLAID follows [Semantic Versioning](https://semver.org/). The `v1.0.0` release is
the first major release: it consolidates the data model, removes deprecated and
out-of-scope modules, and simplifies several public APIs. As a major release, it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor releases were also breaking API

If you imported any of these, remove the import and move the corresponding logic
into your own project, or rely on the supported data-model APIs.

### `ProblemDefinition`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

update

level as `ProblemDefinition` (see [Infos](concepts/infos.md)).
- **`plaid.viewer`** β€” an interactive [trame](https://kitware.github.io/trame/)
application for visual dataset exploration (see [Viewer](concepts/viewer.md)).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add plaid-check

Comment thread docs/source/upgrade_guide.md Outdated
`features=[...]` and `indexers={...}` for partial reads on the `hf_datasets` and
`zarr` backends β€” see the [Conversion tutorial](tutorials/storage.md#indexed-extraction-with-indexers).

### `plaid.types`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove this section ?

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

@casenave casenave merged commit 9172da4 into main Jun 5, 2026
10 checks passed
@casenave casenave deleted the docs/406-upgrade-guide branch June 5, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation nice to have

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a migration guide from last v0.* to v1.0.0

3 participants