Bug 37495 - Add ability to use metadata to filter plugins to run for plugins_nightly.pl
Summary: Add ability to use metadata to filter plugins to run for plugins_nightly.pl
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Kyle M Hall (khall)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-26 14:24 UTC by Kyle M Hall (khall)
Modified: 2024-09-29 20:44 UTC (History)
0 users

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


Attachments
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl (2.34 KB, patch)
2024-07-26 14:54 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl (2.45 KB, patch)
2024-07-29 12:16 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl (2.50 KB, patch)
2024-09-29 20:44 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2024-07-26 14:24:56 UTC
It would be nice to have the ability to specify a single pluign for plugins_nightly.pl to run for a few reasons:
1) It would be very useful for development and testing
2) It gives the ability to run different nightly triggers at different times
3) Some other third thing
Comment 1 Kyle M Hall (khall) 2024-07-26 14:54:26 UTC
Created attachment 169741 [details] [review]
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl

It would be nice to be able to filter the plugins run by plugins
nightly for development and testing, and for added flexibility
as to when to run cronjob_nightly for different plugins if need be.

Test Plan:
1) Apply this patch
2) Check the metadata for an installed plugin, copy the name or another
   metadata value.
3) Run plugins_nightly.pl with a filter that does not match
   e.g. plugins_nightly.pl -m name="No plugin has this name"
4) Note no plugins cronjob methods are run
5) Run plugins_nightly.pl with a filter that *does* match
   e.g. plugins_nightly.pl -m name="Example Kitchen-Sink Plugin"
6) Not only the matching plugin runs!
7) Run plugins_nightly with no filter
   e.g. plugins_nightly.pl
8) Note all plugins with nightly cronjobs are run!
Comment 2 Kyle M Hall (khall) 2024-07-29 12:16:03 UTC
Created attachment 169826 [details] [review]
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl

It would be nice to be able to filter the plugins run by plugins
nightly for development and testing, and for added flexibility
as to when to run cronjob_nightly for different plugins if need be.

Test Plan:
1) Apply this patch
2) Check the metadata for an installed plugin, copy the name or another
   metadata value.
3) Run plugins_nightly.pl with a filter that does not match
   e.g. plugins_nightly.pl -m name="No plugin has this name"
4) Note no plugins cronjob methods are run
5) Run plugins_nightly.pl with a filter that *does* match
   e.g. plugins_nightly.pl -m name="Example Kitchen-Sink Plugin"
6) Not only the matching plugin runs!
7) Run plugins_nightly with no filter
   e.g. plugins_nightly.pl
8) Note all plugins with nightly cronjobs are run!
Comment 3 David Nind 2024-09-29 20:44:51 UTC
Created attachment 172200 [details] [review]
Bug 37495: Add ability to use metadata to filter plugins to run for plugins_nightly.pl

It would be nice to be able to filter the plugins run by plugins
nightly for development and testing, and for added flexibility
as to when to run cronjob_nightly for different plugins if need be.

Test Plan:
1) Apply this patch
2) Check the metadata for an installed plugin, copy the name or another
   metadata value.
3) Run plugins_nightly.pl with a filter that does not match
   e.g. plugins_nightly.pl -m name="No plugin has this name"
4) Note no plugins cronjob methods are run
5) Run plugins_nightly.pl with a filter that *does* match
   e.g. plugins_nightly.pl -m name="Example Kitchen-Sink Plugin"
6) Not only the matching plugin runs!
7) Run plugins_nightly with no filter
   e.g. plugins_nightly.pl
8) Note all plugins with nightly cronjobs are run!

Signed-off-by: David Nind <david@davidnind.com>