Bug 32449 - Plugins: Order the results of GetPlugins/get_enabled_plugins
Summary: Plugins: Order the results of GetPlugins/get_enabled_plugins
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Plugin architecture (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-12 12:05 UTC by Marcel de Rooy
Modified: 2024-05-03 10:08 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2022-12-12 12:05:52 UTC
We still get results back in database insertion order. We could at least order them by plugin class to get more consistent results for running multiple plugins, not relying on installation order.
A developer that needs execution in a certain order would be able to control that by class name. Which sounds more reliable to me than installation order.
Comment 1 Martin Renvoize 2024-05-03 10:07:45 UTC
In bug 36503 they introduced a priority attribute and sorted by that.

I'm not sure what the best approach is here honestly.. I think if we do allow for a priority then we'll want to expose that order somehow to end users and let them choose (probably with guidance from plugin authors in their documentation.. i.e why should one plugin be able to say it's more important than another.. surely that's the libraries decision)