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
…
CounterLog.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CounterLogs.pm
…
DefaultUsageReport.pm
…
DefaultUsageReports.pm
…
MonthlyUsage.pm
…
MonthlyUsages.pm
…
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
…
UsageDatabase.pm
…
UsageDatabases.pm
…
UsageItem.pm
…
UsageItems.pm
…
UsagePlatform.pm
…
UsagePlatforms.pm
…
UsageTitle.pm
…
UsageTitles.pm
…
YearlyUsage.pm
…
YearlyUsages.pm
…