Skip to content

Sync validation API - #3280

Merged
texodus merged 2 commits into
masterfrom
validate-migrations
Nov 8, 2026
Merged

texodus merged 2 commits into
masterfrom
validate-migrations

Conversation

@texodus

@texodus texodus commented Nov 8, 2026

Copy link
Copy Markdown
Member

This PR adds new APIs to the new perspective-migrate package:

  • New validate() takes the same ViewConfig, ViewerConfig or WorkspaceConfig, and validates the viewer-agnostic fields with detailed error messages. validate() is now run as the last step of migrate() as well.
  • New create_validator() returns a dict of validate and migrate, sync versions of these APIs, for implementors which do not support async APIs well.
  • New strict flag which determines whether "update" or "initial" variants are enforced.
  • New support for Panel variant of ViewerConfig - e.g. , with aliased palette and derived tables.

Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added the enhancement Feature requests or improvements label Nov 8, 2026
@texodus texodus changed the title Validate migrations Sync validation API Nov 8, 2026
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus
texodus force-pushed the validate-migrations branch from a1b7696 to 1320005 Compare November 8, 2026 02:43
@texodus
texodus merged commit 89e3a52 into master Nov 8, 2026
19 checks passed
@texodus
texodus deleted the validate-migrations branch November 8, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests or improvements

Development

Successfully merging this pull request may close these issues.

1 participant