[Koha-bugs] [Bug 24631] Plugin metadata should be outside the main class

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 29 21:30:08 CEST 2020


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #103722|0                           |1
        is obsolete|                            |

--- Comment #36 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 103982
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103982&action=edit
Bug 24631: Plugin metadata should be outside the main class

Currently, plugin metadata is stored within the main plugin class file but this
means one has to load the class to read it.  We should pull this data out into
a manifest/metadata file in a standard format (JSON/YAML) to allow simpler
external parsing.

Test Plan:
1) Apply this patch
2) Install the latest Kitchen Sink plugin:
https://github.com/bywatersolutions/koha-plugin-kitchen-sink/releases/download/v2.1.39/koha-plugin-kitchen-sink-v2.1.39.kpz
3) Browse to plugins home, note that nothing appears to have changed
4) Browse to your pluginsdir, find the PLUGIN.yml file for the Kitchen Sink
plugin, edit some of the metadata
5) Reload the plugins home page, note your changes to PLUGIN.yml appear in the
plugins table!

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


More information about the Koha-bugs mailing list