Koha-clms/Koha/ERM/EUsage
Pedro Amorim 023f935360
Bug 39823: Identify error messages based on code
Even if severity does not exist. Additionally, only add severity to message if it exists.

Test plan:
1) Apply tests patches. Run tests (they should fail):
prove t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t
2) Apply this patch and run tests again (they should pass this time).

UI test:
1) Create a new data provider linked to Gale Cengage, service url:
https://api.siqcloud.online/counterapi/r51
2) Add report release 5, customer id: '123', requestor id: '123', report types: 'TR_J1'
3) Run a report for this data provider, from Feb 2025 to Apr 2025. Notice that before applying patches, the job report results in a red bar with no error message.
4) Apply patches, repeat 3. Notice it now results in a nice error message.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-06-02 15:26:19 -06:00
..
CounterFile.pm Bug 36627: Record who is importing sushi data 2024-12-23 13:36:13 +01:00
CounterFiles.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
CounterLog.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CounterLogs.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
DefaultUsageReport.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
DefaultUsageReports.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
MonthlyUsage.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
MonthlyUsages.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
SushiCounter.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
UsageDataProvider.pm Bug 39823: Identify error messages based on code 2025-06-02 15:26:19 -06:00
UsageDataProviders.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageDatabase.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageDatabases.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageItem.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageItems.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsagePlatform.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsagePlatforms.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageTitle.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageTitles.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
YearlyUsage.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
YearlyUsages.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00