Skip to content

Ensure incompatible config does not prevent ConfigurationWidget from operating #525

@SimonHeybrock

Description

@SimonHeybrock

Context:

  • ConfigurationWidget uses ConfigurationAdapter to fill in defaults.
  • ConfigurationAdapter uses stored config (see Implement file-backed config store for dashboard persistence #524 for example) to validate a Pydantic model.
  • If workflow params change in an incompatible way we should increment the workflow version to avoid problems.
  • But that may not reflect reality, i.e., we may have incompatible config that cannot be parsed any more.

Solution:

  • Ensure we catch exceptions from Pydantic model validation on config (use workflow defaults instead, as if there was no stored config).
  • Consider if we can or should clear the bad config, or just rely on it being overwritten?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions