Enable autoMigrate for plugins
See original GitHub issueIs your enhancement related to a problem? Please describe.
Plugin metas currently support an autoMigrate field, e.g. for the camel plugin. However, it seems that automatic updating of devfiles to use a different plugin is never done; this interferes with a deprecation procedure, as plugins that have been deprecated still cannot be removed from the plugin registry without the risk of breaking workspaces.
Describe the solution you’d like
On loading workspaces for a user, any plugins that have the autoMigrate flag set are rewritten to use the migrateTo
. This would allow a procedure as described by @l0rd, where
- release
x.x.x
: Plugin deprecate flag is set, with autoMigrate false, to warn users that their plugin is deprecated - release
x.x.x+1
:autoMigrate
flag can be set, to auto-update anyone who hasn’t seen the notification - release
x.x.x+3
: plugin can be removed from repo.
Describe alternatives you’ve considered
There is an issue for similar functionality in the broker: https://github.com/eclipse/che/issues/13022. However, it doesn’t make sense in terms of deprecation, as the devfile will still depend on the deprecated plugin being in the registry.
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Since plugin reg now only includes latest version… closing as obsolete.
I think P2 is also fine because I am contemplating whether we even want multiple plugin versions in the registry. We release Che so often, it might be worth it only to keep the latest version of each plugin in the registry.