Bugzilla – Attachment 158933 Details for
Bug 30070
Performance issues with edifactmsgs when you have a large number of messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30070: Add Koha Objects for EDI Message Files
Bug-30070-Add-Koha-Objects-for-EDI-Message-Files.patch (text/plain), 3.34 KB, created by
Martin Renvoize (ashimema)
on 2023-11-14 15:43:02 UTC
(
hide
)
Description:
Bug 30070: Add Koha Objects for EDI Message Files
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-11-14 15:43:02 UTC
Size:
3.34 KB
patch
obsolete
>From 97c002a73f2dd4f1750e644491c451fd69275c0a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 10 Nov 2023 12:36:04 +0000 >Subject: [PATCH] Bug 30070: Add Koha Objects for EDI Message Files > >This patch adds the Koha Object based classes assocaited with the >edifact_message table. This table actually contains the raw message >files which may well each contain multiple edifact messages. >--- > Koha/Edifact/File.pm | 50 ++++++++++++++++++++++++++++++++++ > Koha/Edifact/Files.pm | 62 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 112 insertions(+) > create mode 100644 Koha/Edifact/File.pm > create mode 100644 Koha/Edifact/Files.pm > >diff --git a/Koha/Edifact/File.pm b/Koha/Edifact/File.pm >new file mode 100644 >index 00000000000..8f01f1dff3e >--- /dev/null >+++ b/Koha/Edifact/File.pm >@@ -0,0 +1,50 @@ >+package Koha::Edifact::File; >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use base qw(Koha::Object); >+ >+=encoding utf8 >+ >+=head1 Name >+ >+Koha::Edifact::File - Koha::Object class for single edifact file >+ >+=head2 Class methods >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+Returns name of corresponding DBIC resultset >+ >+=cut >+ >+sub _type { >+ return 'EdifactMessage'; >+} >+ >+=head1 AUTHOR >+ >+Martin Renvoize <martin.renvoize@ptfs-europe.com> >+ >+Koha Development Team >+ >+=cut >+ >+1; >diff --git a/Koha/Edifact/Files.pm b/Koha/Edifact/Files.pm >new file mode 100644 >index 00000000000..e0701d24794 >--- /dev/null >+++ b/Koha/Edifact/Files.pm >@@ -0,0 +1,62 @@ >+package Koha::Edifact::Files; >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Koha::Database; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Edifact::Files - Koha Edifact File Object set class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+Returns name of corresponding DBIC resultset >+ >+=cut >+ >+sub _type { >+ return 'EdifactMessage'; >+} >+ >+=head3 object_class >+ >+Returns name of corresponding koha object class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Edifact::File'; >+} >+ >+=head1 AUTHOR >+ >+Martin Renvoize <martin.renvoize@ptfs-europe.com> >+ >+Koha Development Team >+ >+=cut >+ >+1; >-- >2.41.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30070
:
158808
|
158809
|
158810
|
158887
|
158903
|
158904
|
158905
|
158906
|
158907
|
158908
|
158909
|
158910
|
158911
|
158912
|
158913
|
158914
|
158915
|
158918
|
158920
|
158922
|
158923
|
158924
|
158925
|
158926
|
158927
|
158928
|
158929
|
158930
|
158931
|
158932
|
158933
|
158934
|
158935
|
158936
|
158937
|
158938
|
158939
|
158940
|
158941
|
158942
|
158943
|
158944
|
158945
|
158946
|
158947
|
158948
|
158949
|
158950
|
158951
|
158952
|
158953
|
158954
|
158955
|
158963
|
158964
|
158965
|
158966
|
158967
|
158968
|
158969
|
158970
|
158971
|
158972
|
158973
|
158974
|
158975
|
159026
|
159027
|
159028
|
159029
|
159030
|
159031
|
159032
|
159033
|
159034
|
159035
|
159036
|
160336
|
160337
|
160338
|
160339
|
160340
|
160341
|
160342
|
160343
|
160344
|
160345
|
160346
|
160347
|
160348