question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable autoMigrate for plugins

See original GitHub issue

Is 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

  1. release x.x.x: Plugin deprecate flag is set, with autoMigrate false, to warn users that their plugin is deprecated
  2. release x.x.x+1: autoMigrate flag can be set, to auto-update anyone who hasn’t seen the notification
  3. 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

Screenshot from 2019-12-11 11-25-22

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nickboldtcommented, Sep 28, 2021

Since plugin reg now only includes latest version… closing as obsolete.

1reaction
ericwillcommented, Oct 1, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration
Automatically migrate your schema, to keep your schema up to date. NOTE: AutoMigrate will create tables, missing foreign keys, constraints, ...
Read more >
WordPress Automatic Migrator
Go to Plugins -> Add New and install and activate the free SiteGround Migrator plugin from the official WordPress plugin repository. Important! Make...
Read more >
Auto migration of check plugins to new section definitions
Checkmk refuses to auto-migrate cluster aware check plugins (those with node_info set to True). Auto converting the data layout is too error ...
Read more >
v4 Plugin Migration Guide
1. Enable your plugin. A v3 plugin was enabled if it was installed or it was found in the plugins directory. · 2....
Read more >
storybook/MIGRATION.md at next
Automigrate ; CRA5 upgrade; CSF3 enabled ... This file includes a bunch of babel plugins, so you may need to add new package...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found