kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

Uninstalling plugins should remove data on uninstall #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently when you uninstall a plugin, it leaves the configuration data on the 
server.

Can we have a method that gets called in the plugin to remove this data or 
maybe schedule it as some kind of cron job cleanup task?

Original issue reported on code.google.com by roland.q...@gmail.com on 31 Jul 2010 at 1:08

GoogleCodeExporter commented 9 years ago
It may also be useful to selectively remove and/or modify existing config data 
via an interface. I think this could be done as a plugin too!

Original comment by roland.q...@gmail.com on 31 Jul 2010 at 1:13

GoogleCodeExporter commented 9 years ago
We can add confirmation dialog for removing plugin data.

Original comment by kinyelo@gmail.com on 31 Jul 2010 at 5:39

GoogleCodeExporter commented 9 years ago
Now I see that general plugin data is removed but custom plugin data remains.

Only plugin knows about all custom entities it has created in datastore so only 
plugin can remove it's private data.

I think the best way is to create task for removing entities. And add method to 
PluginEntryPoint void uninstall() which can start erasure task.

Original comment by kinyelo@gmail.com on 31 Jul 2010 at 7:48

GoogleCodeExporter commented 9 years ago
Implemented. Please look at register plugin entry point class for usage example.

Original comment by kinyelo@gmail.com on 31 Jul 2010 at 8:18