[Koha-bugs] [Bug 34978] Add --include and --exclude options to install_plugins.pl to choose the plugins to install

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 4 15:23:29 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34978

--- Comment #1 from Émily-Rose Francoeur <emily-rose.francoeur at inLibro.com> ---
Created attachment 156539
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156539&action=edit
Bug 34978: Add --include and --exclude options to install_plugins.pl

I have added the options --include and --exclude to the install_plugins.pl
script. When running the script, you can now specify which plugins you want to
install (--include) and which ones you do not want to install (--exclude).

--include installs only the plugins from the specified classes.
--exclude installs all plugins except those from the specified classes.
It’s possible to specify the package to install a specific plugin.
--include and --exclude cannot be used simultaneously.

Usage example:
./misc/devel/install_plugins --include Test1 --include Koha::Plugin::Test2

TEST PLAN
1) Apply the patch
2) Add at least three plugins to the plugin directory
([Koha]/plugins/Koha/Plugin/)
3) Empty the "plugin_data" and "plugin_methods" tables (SQL command: "delete
from plugin_data; delete from plugin_methods;")
4) In a terminal, execute this command : "./misc/devel/install_plugins.pl
--include <package::pluginClass> --include <anotherPluginClass>" (Replace
<package::pluginClass> and <anotherPluginClass> with the class and package of
your plugins)
5) In your Koha intranet, go to "Koha administration > Manage plugins"
6) Verify that only the specified plugins are installed
7) Repeat step 3
8) In a terminal, execute this command from your Koha project :
"./misc/devel/install_plugins.pl --exclude <package::pluginClass> --exclude
<anotherPluginClass>”
9) Verify that all plugins except the specified ones are installed
10) Run the tests from the Plugins.t file
([Koha]/t/db_dependent/Koha/Plugins/Plugins.t)
11) Ensure that all tests are successful

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list