Details
-
Sub-task
-
Resolution: Unresolved
-
Major
-
PE Milestone 9 (Stitching Time!)
-
None
Description
Deleting the related models of a plugin when the plugin itself is deleted is not currently handled.
For example, if a Server is deleted, any plugin references that Server should prevent the Server from being deleted. (eg: Deleting a Server that is defined with the SqlServer Plugin should throw an error (flash message) if there is a SqlProvisioner (via the SqlConnector Plugin) configuration referencing it.
Because plugin models aren’t loaded until needed we’d basically need a way for Server to query all plugins to determine if any of them are referencing servers. This could perhaps be a function like PluginsTable->checkForReference(‘Server’) which would then check each Active plugin (probably any declared entry point model?).