1
Add plugin `onPluginUpdate` lifecycle event for data / migration management
Source: Kong/insomnia#3567 · opened by @nijikokun
Is your feature request related to a problem? Please describe.
It is difficult for plugin developers to implement migration paths for major plugin upgrades. Currently plugin developers will have to manage their own lifecycle event detection by storing arbitrary versioning data or detecting outdated data models.
Describe the solution you'd like
On plugin update, an event that the plugin can subscribe to, and invoke a function from with plugin meta information.
• Previous plugin verson
• Current plugin version
Additional features:
• Leveraging identifiers to target settings
Additional context
> Insomnia should use IDs to target the settings before they move plugins out of beta though. Without it updating plugins will be a nightmare 😄
See
> Insomnia should have life cycle events for plugins, like onPluginUpdate or something, in which we could migrate old settings to new settings.
See
It is difficult for plugin developers to implement migration paths for major plugin upgrades. Currently plugin developers will have to manage their own lifecycle event detection by storing arbitrary versioning data or detecting outdated data models.
Describe the solution you'd like
On plugin update, an event that the plugin can subscribe to, and invoke a function from with plugin meta information.
• Previous plugin verson
• Current plugin version
Additional features:
• Leveraging identifiers to target settings
Additional context
> Insomnia should use IDs to target the settings before they move plugins out of beta though. Without it updating plugins will be a nightmare 😄
See
> Insomnia should have life cycle events for plugins, like onPluginUpdate or something, in which we could migrate old settings to new settings.
See
No pledges yet. Be the first to back this.
Comments
Similar requests
Export data should include plugin's data
1 vote · 0 comments
Add plugin apis to control spec design functionality
1 vote · 0 comments
Add Event hooks to Plugins
1 vote · 0 comments
Handle plugin updates
5 votes · 0 comments
Add option to expand template tags in plugins and UI when exporting
1 vote · 0 comments
No comments yet.