Koha/misc
Matt Blenkinsop 6b90fa3ec4
Bug 30069: (QA follow-up) Rebase and add filter
This patch now checks the status of messages and ignores any message
with a status of 'new'. It is also rebased to account for changes made
to cleanup_database.pl in bug 17350.

Test plan:
1) Ensure you have some EDI orders or even just some dummy messages in the edifact_messages table with a mixture of statuses including 'new'
2) Run perl misc/cronjobs/cleanup_database.pl --edifact-messages 100 --verbose (Change the number of days according to the data in your table)
3) The response should show a number of messages that would have been deleted
4) Run perl misc/cronjobs/cleanup_database.pl --edifact-messages 100 --verbose --confirm
5) The response should now show the same number of messages have been deleted
6) Check your edifact_messages table to confirm that the data has been deleted
7) Confirm that no messages marked 'new' have been deleted

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-02 12:00:21 -03:00
..
admin
bin
cronjobs Bug 30069: (QA follow-up) Rebase and add filter 2023-03-02 12:00:21 -03:00
devel
interface_customization
maintenance Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
migration_tools Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record 2023-02-21 10:23:34 -03:00
release_notes Add release notes for Koha 22.11.00 2022-11-25 15:20:02 -03:00
search_tools
translator Bug 32356: Install installer translated files on update 2023-02-09 10:21:17 -03:00
workers Bug 32594: (QA follow-up) Fix POD 2023-03-02 09:37:32 -03:00
add_date_fields_to_marc_records.pl
add_statistics_borrowers_categorycode.pl Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
batchCompareMARCvsFrameworks.pl
batchdeletebiblios.pl
batchDeleteUnusedSubfields.pl
batchImportMARCWithBiblionumbers.pl
batchRebuildBiblioTables.pl
batchRebuildItemsTables.pl
batchRepairMissingBiblionumbers.pl
check_sysprefs.pl
commit_file.pl Bug 15869: Change framework on overlay 2023-02-07 10:32:22 -03:00
export_borrowers.pl
export_records.pl
exportauth.pl
import_patrons.pl Bug 32793: import_patrons.pl typo in usage 2023-02-03 10:30:14 -03:00
koha-install-log
link_bibs_to_authorities.pl
load_yaml.pl
mod_zebraqueue.pl
perlmodule_ls.pl
perlmodule_rm.pl
process_ill_updates.pl
recreateIssueStatistics.pl
sax_parser_print.pl
sax_parser_test.pl
sip_cli_emulator.pl Bug 32537: (QA follow-up): Tidy code 2023-02-03 10:30:10 -03:00
stage_file.pl
z3950_responder.pl