This starts from a use case where I do want to suspend a certain item plugin hook for a specific command line process. But I dont want to disable the plugin for all processes. So yes, this requires enough understanding from the admin who does that. My idea is to introduce something similar here to the override_syspref construct. To allow suspending a plugin method or class via an environment variable.
Any feedback appreciated.
Created attachment 194514 [details] [review] Bug 41991: Introduce SUSPEND_PLUGIN in Koha::Plugins->call Test plan: Add a SetEnv for your staff client in Apache to suspend a plugin class. Verify that that specific plugin class was not run. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 194515 [details] [review] Bug 41991: Unit tests Test plan: Run t/db_dependent/Koha/Plugins/Plugins.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 194516 [details] [review] Bug 41991: Unit tests Test plan: Run t/db_dependent/Koha/Plugins/Plugins.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>