Bug 29149 - Background job detail view needs more flexibility
Summary: Background job detail view needs more flexibility
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 26080
Blocks: 23678
  Show dependency treegraph
 
Reported: 2021-10-01 08:43 UTC by Jonathan Druart
Modified: 2022-06-06 20:24 UTC (History)
3 users (show)

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


Attachments
Bug 29149: Add the capability to provide more info to the background job detail view (6.00 KB, patch)
2021-10-01 09:00 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 29149: Add the capability to provide more info to the background job detail view (6.05 KB, patch)
2021-10-01 13:04 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review
Bug 29149: (QA follow-up) Reorganize mapping (2.15 KB, patch)
2021-10-01 13:04 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2021-10-01 08:43:51 UTC

    
Comment 1 Jonathan Druart 2021-10-01 09:00:10 UTC
Created attachment 125581 [details] [review]
Bug 29149: Add the capability to provide more info to the background job detail view

(Patch extracted from bug 28445 to make it reusable for bug 23678)
We already had the need for that, when bibliographic records are
modified in batch we wanted to add a "Add to list" feature, and so pass
a list of lists/virtual shelves to the template.

Here (in 28445) we will want to pass the infos of the items that have been modified
to display a table.

Test plan:
0. Create at least one list (virtual shelf)
1. batch update biblios
2. Go to the job detail
3. Notice that dropdown list to add the record to a list
=> No regression found!
Comment 2 Tomás Cohen Arazi 2021-10-01 13:04:00 UTC
Created attachment 125625 [details] [review]
Bug 29149: Add the capability to provide more info to the background job detail view

(Patch extracted from bug 28445 to make it reusable for bug 23678)
We already had the need for that, when bibliographic records are
modified in batch we wanted to add a "Add to list" feature, and so pass
a list of lists/virtual shelves to the template.

Here (in 28445) we will want to pass the infos of the items that have been modified
to display a table.

Test plan:
0. Create at least one list (virtual shelf)
1. batch update biblios
2. Go to the job detail
3. Notice that dropdown list to add the record to a list
=> No regression found!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Comment 3 Tomás Cohen Arazi 2021-10-01 13:04:04 UTC
Created attachment 125626 [details] [review]
Bug 29149: (QA follow-up) Reorganize mapping

This patch changes the mapping so it is more readable, and also allows
adding things there more easily, like allowing to add code => class
mappings from plugins, when time comes.

To test:
1. Just verify things still work
Comment 4 Jonathan Druart 2021-10-01 14:17:29 UTC
+sub type_to_class_mapping {

 FAIL   Koha/BackgroundJob.pm
   FAIL   forbidden patterns                                                                              
                forbidden pattern: Warning: The 'sub type' may be wrong is declared in a Koha::* package (see bug 15446) (line 253)     

False positive, fixed by 
https://gitlab.com/koha-community/qa-test-tools/-/merge_requests/40
Comment 5 Jonathan Druart 2021-10-01 14:30:42 UTC
Pushed to master for 21.11, thanks to everybody involved!