Bug 16720

Summary: DBIx ActionLogs.pm should be removed
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Tomás Cohen Arazi <tomascohen>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: chris, f.demians, julian.maurice, kyle
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16720: Remove DBIx ActionLogs.pm
[SIGNED-OFF] Bug 16720: Remove DBIx ActionLogs.pm
Bug 16720: Remove DBIx ActionLogs.pm

Description Tomás Cohen Arazi 2016-06-13 16:04:00 UTC
It is just a leftover. The update_dbix_class_files.pl now produces non-plural names, and we have ActionLog.pm in the source tree.
Comment 1 Tomás Cohen Arazi 2016-06-13 16:11:33 UTC Comment hidden (obsolete)
Comment 2 Srdjan Jankovic 2016-06-14 04:11:21 UTC Comment hidden (obsolete)
Comment 3 Tomás Cohen Arazi 2016-06-14 14:59:13 UTC
Just for the record, I confirmed this is the only schema file in this situation.
Comment 4 Jonathan Druart 2016-06-14 16:00:28 UTC
Created attachment 52394 [details] [review]
Bug 16720: Remove DBIx ActionLogs.pm

The update_dbix_class_files.pl script generates ActionLog.pm instead, which is
already on the source tree.

To test:
- Apply the patch
=> SUCCESS: Koha/Schema/Result/ActionLogs.pm is removed
- Run:
  $ mysql -uroot
  > CREATE DATABASE dbic; \q
  $ mysql -uroot dbic < kohaclone/installer/data/mysql/kohastructure.sql
  $ misc/devel/update_dbix_class_files.pl --db_name dbic --db_user root
=> SUCCESS: Koha/Schema/Result/ActionLogs.pm is not re-generated
- Run:
  $ git grep ActionLogs
=> SUCCESS: There's no code using it
- Sign off

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Kyle M Hall 2016-06-17 14:38:24 UTC
Pushed to master, thanks Tomas!
Comment 6 Frédéric Demians 2016-06-24 05:45:21 UTC
Pushed in 16.05. Will be in 16.05.01.
Comment 7 Julian Maurice 2016-07-01 06:51:31 UTC
Patch pushed to 3.22.x, will be in 3.22.9
Comment 8 Chris Cormack 2016-07-07 23:15:08 UTC
Pushed to 3.20.x will be in 3.20.13