Bug 38543

Summary: dataTables assets included but no longer exist
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: Pushed to oldstable --- QA Contact: Matt Blenkinsop <matt.blenkinsop>
Severity: normal    
Priority: P5 - low CC: david, fridolin.somers, matt.blenkinsop, wainuiwitikapark
Version: MainKeywords: rel_24_11_candidate
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
This fixes the cause of a file not found message in log files when displaying the checkouts table for a patron (for any patron with current checkouts > Check out > Checkouts tab > Show checkouts). It removes the reference to the rowGroup data tables plugin assets - these no longer exist, as the plugin is now part of DataTables. (This is related to the upgrade to DataTables 2.x in Koha 24.11.)
Version(s) released in:
25.05.00,24.11.01
Circulation function:
Bug Depends on: 36640    
Bug Blocks:    
Attachments: Bug 38543: Do not include rowGroup asset files
Bug 38543: Do not include rowGroup asset files
Bug 38543: Do not include rowGroup asset files

Description Jonathan Druart 2024-11-27 08:54:19 UTC
rowGroup plugin is now part of the datatables.min.js bundle. We no longer need to include its css and js files, and they no longer exist anyway!

[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 107.
[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.
Comment 1 Jonathan Druart 2024-11-27 08:59:03 UTC
Created attachment 175001 [details] [review]
Bug 38543: Do not include rowGroup asset files

rowGroup plugin is now part of the datatables.min.js bundle. We no
longer need to include its css and js files, and they no longer exist
anyway!

[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 107
[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.

Test plan:
Confirm that the checkouts are grouped "today" and "previous" on the
checkout page.
Comment 2 David Nind 2024-11-27 19:02:24 UTC
Created attachment 175012 [details] [review]
Bug 38543: Do not include rowGroup asset files

rowGroup plugin is now part of the datatables.min.js bundle. We no
longer need to include its css and js files, and they no longer exist
anyway!

[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 107
[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.

Test plan:
Confirm that the checkouts are grouped "today" and "previous" on the
checkout page.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2024-11-27 19:38:16 UTC
Testing notes (using KTD):

1. Check out an item to a patron.
2. In one terminal window, access the ktd shell and tail the logs: tail -f /var/log/koha/kohadev/*
3. Refresh the patron's page and in the "Check out" section > Checkouts, click "Show checkouts".
4. Note the warning message in the logs:

==> /var/log/koha/kohadev/plack-intranet-error.log <==
[2024/11/27 18:42:28] [WARN] File not found : lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 107.
[2024/11/27 18:42:28] [WARN] File not found : lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.

5. In another terminal window, apply the patch, and restart everything.
6. Repeat step 3 and note that is no longer a file not found warning.
Comment 4 Matt Blenkinsop 2024-12-02 10:45:43 UTC
Created attachment 175048 [details] [review]
Bug 38543: Do not include rowGroup asset files

rowGroup plugin is now part of the datatables.min.js bundle. We no
longer need to include its css and js files, and they no longer exist
anyway!

[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 107
[2024/11/27 08:52:37] [WARN] File not found : lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js at /kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.

Test plan:
Confirm that the checkouts are grouped "today" and "previous" on the
checkout page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Comment 5 Katrin Fischer 2024-12-03 16:36:33 UTC
Pushed for 25.05!

Well done everyone, thank you!
Comment 6 Paul Derscheid 2024-12-12 13:31:26 UTC
Nice work everyone!

Pushed to 24.11.x for 24.11.01
Comment 7 Wainui Witika-Park 2024-12-17 02:56:27 UTC
Backported to 24.05.x for 24.05.06
Comment 8 Fridolin Somers 2024-12-18 15:52:53 UTC
(In reply to Wainui Witika-Park from comment #7)
> Backported to 24.05.x for 24.05.06

Depends on Bug 36640 not in 24.05.x, you may need to revert
Comment 9 Wainui Witika-Park 2024-12-19 02:49:46 UTC
(In reply to Fridolin Somers from comment #8)
> (In reply to Wainui Witika-Park from comment #7)
> > Backported to 24.05.x for 24.05.06
> 
> Depends on Bug 36640 not in 24.05.x, you may need to revert

Thanks, reverted from 24.05