Embeddable migration and Persistable State updates #103102
Labels
impact:critical
This issue should be addressed immediately due to a critical level of impact on the product.
loe:medium
Medium Level of Effort
The current implementation relies on the persistor of embeddable state to use
getMigration
(on PersistableStateDefinition) andgetMigrationVersions
(from EmbeddableFactory I believe) together to run migrations correctly (otherwise the plugin author won't know what version number to pass into thegetMigration
function).The
getMigration
andgetAllMigrationVersions
should be replaced with a singlegetMigrations
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.
The text was updated successfully, but these errors were encountered: