| Summary: | Unable to view background job if enable_plugins is 0 | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Aleisha Amohia <aleisha> |
| Component: | System Administration | Assignee: | David Cook <dcook> |
| Status: | Pushed to oldstable --- | QA Contact: | Emily Lamancusa (emlam) <emily.lamancusa> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | dcook, emily.lamancusa, fridolin.somers, gmcharlt, paul.derscheid, tomascohen |
| Version: | Main | Keywords: | rel_24_05_candidate, rel_24_11_candidate |
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | Small patch |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: |
25.11.00,25.05.03,24.11.09
|
|
| Circulation function: | |||
| Bug Depends on: | 40033, 39772 | ||
| Bug Blocks: | |||
| Attachments: |
Bug 40547: Background jobs should appear even when plugins disabled
Bug 40547: Background jobs should appear even when plugins disabled Bug 40547: Background jobs should appear even when plugins disabled |
||
|
Description
Aleisha Amohia
2025-07-30 03:19:59 UTC
Oops! This is one of the reasons I don't love method chaining. Created attachment 184854 [details] [review] Bug 40547: Background jobs should appear even when plugins disabled This change fixes the background jobs so that the list page loads even when plugins are disabled. Test plan: 0. Apply the patch 1. Download https://github.com/HKS3/koha-normalize-marc2db/releases/download/v0.91/Koha.Plugin.HKS3.NormalizeMARC2DB-0.91.kpz 2. Upload plugin into KTD 3. Click "Run tool" for plugin 4. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 5. Note that you see a pretty "Type" 6. Go to /etc/koha/sites/kohadev/koha-conf.xml and turn enable_plugins to 0 7. sudo koha-plack --restart kohadev 8. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 9. Note it now says "Unknown job type 'plugin_marc2db_normalizeall' 10. Celebrate as this is preferable to a 500 error Created attachment 184918 [details] [review] Bug 40547: Background jobs should appear even when plugins disabled This change fixes the background jobs so that the list page loads even when plugins are disabled. Test plan: 0. Apply the patch 1. Download https://github.com/HKS3/koha-normalize-marc2db/releases/download/v0.91/Koha.Plugin.HKS3.NormalizeMARC2DB-0.91.kpz 2. Upload plugin into KTD 3. Click "Run tool" for plugin 4. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 5. Note that you see a pretty "Type" 6. Go to /etc/koha/sites/kohadev/koha-conf.xml and turn enable_plugins to 0 7. sudo koha-plack --restart kohadev 8. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 9. Note it now says "Unknown job type 'plugin_marc2db_normalizeall' 10. Celebrate as this is preferable to a 500 error Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Created attachment 184931 [details] [review] Bug 40547: Background jobs should appear even when plugins disabled This change fixes the background jobs so that the list page loads even when plugins are disabled. Test plan: 0. Apply the patch 1. Download https://github.com/HKS3/koha-normalize-marc2db/releases/download/v0.91/Koha.Plugin.HKS3.NormalizeMARC2DB-0.91.kpz 2. Upload plugin into KTD 3. Click "Run tool" for plugin 4. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 5. Note that you see a pretty "Type" 6. Go to /etc/koha/sites/kohadev/koha-conf.xml and turn enable_plugins to 0 7. sudo koha-plack --restart kohadev 8. Go to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl 9. Note it now says "Unknown job type 'plugin_marc2db_normalizeall' 10. Celebrate as this is preferable to a 500 error Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Nice work everyone! Pushed to main for 25.11 Nice work everyone! Pushed to 25.05.x A report on Mattermost makes it sound like this needs to be pushed to 24.11.x as well. (In reply to David Cook from comment #7) > A report on Mattermost makes it sound like this needs to be pushed to > 24.11.x as well. Oh man I just bumped into this myself again. Going to backport it to my own local branch... Note this applies cleanly onto 24.11 Pushed to 24.11.x for 24.11.09 |