Skip to content

Embeddable migration and Persistable State updates #103102

@stacey-gammon

Description

@stacey-gammon

The current implementation relies on the persistor of embeddable state to use getMigration (on PersistableStateDefinition) and getMigrationVersions (from EmbeddableFactory I believe) together to run migrations correctly (otherwise the plugin author won't know what version number to pass into the getMigration function).

The getMigration and getAllMigrationVersions should be replaced with a single getMigrations function on PersistableStateService interfaces that returns an object with the versions mapped to the functions. This will make it easier for consumers.

Additional persistable state items tracked in other issues:

I'm adding this as critical impact because of the impact this will have on users of PersistableStateService. This change should result in improved upgrade stability, by making it less fragile to use in an incorrect manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact:criticalThis issue should be addressed immediately due to a critical level of impact on the product.loe:mediumMedium Level of Effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions